• zelig's avatar
    changes that fix it all: · 364b7832
    zelig authored
    - set proper public key serialisation length in pubLen = 64
    - reset all sizes and offsets
    - rename from DER to S (we are not using DER encoding)
    - add remoteInitRandomPubKey as return value to respondToHandshake
    - add ImportPublicKey with error return to read both EC golang.elliptic style 65 byte encoding and 64 byte one
    - add ExportPublicKey falling back to go-ethereum/crypto.FromECDSAPub() chopping off the first byte
    - add Import - Export tests
    - all tests pass
    364b7832
crypto_test.go 4.23 KB