diff options
author | zelig <viktor.tron@gmail.com> | 2015-01-21 00:47:46 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-02-06 07:00:35 +0800 |
commit | 364b7832811c19106456b3b30a34c7097a0b526e (patch) | |
tree | f3143c8bdfdb3a2eedab9bb4a00b3df0116602e6 /p2p/message_test.go | |
parent | 58fc2c679b3d3b987aeefc98aa22db5f02717638 (diff) | |
download | go-tangerine-364b7832811c19106456b3b30a34c7097a0b526e.tar go-tangerine-364b7832811c19106456b3b30a34c7097a0b526e.tar.gz go-tangerine-364b7832811c19106456b3b30a34c7097a0b526e.tar.bz2 go-tangerine-364b7832811c19106456b3b30a34c7097a0b526e.tar.lz go-tangerine-364b7832811c19106456b3b30a34c7097a0b526e.tar.xz go-tangerine-364b7832811c19106456b3b30a34c7097a0b526e.tar.zst go-tangerine-364b7832811c19106456b3b30a34c7097a0b526e.zip |
changes that fix it all:
- 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
Diffstat (limited to 'p2p/message_test.go')
0 files changed, 0 insertions, 0 deletions