diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-04-10 21:52:01 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-04-10 21:52:01 +0800 |
commit | 0e4f21fc376fae88b59cb33a06a1ddd36a11a592 (patch) | |
tree | e7512b77374ada18387bde01065ecf1edaa51fce /whisper/message_test.go | |
parent | 7d8ce53eca90a6e93e49d584a2cff5e39aea40c0 (diff) | |
download | go-tangerine-0e4f21fc376fae88b59cb33a06a1ddd36a11a592.tar go-tangerine-0e4f21fc376fae88b59cb33a06a1ddd36a11a592.tar.gz go-tangerine-0e4f21fc376fae88b59cb33a06a1ddd36a11a592.tar.bz2 go-tangerine-0e4f21fc376fae88b59cb33a06a1ddd36a11a592.tar.lz go-tangerine-0e4f21fc376fae88b59cb33a06a1ddd36a11a592.tar.xz go-tangerine-0e4f21fc376fae88b59cb33a06a1ddd36a11a592.tar.zst go-tangerine-0e4f21fc376fae88b59cb33a06a1ddd36a11a592.zip |
whisper: polish the Envelope a bit, prep for tests.
Diffstat (limited to 'whisper/message_test.go')
-rw-r--r-- | whisper/message_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/whisper/message_test.go b/whisper/message_test.go index ed24d37d8..8d4c5e990 100644 --- a/whisper/message_test.go +++ b/whisper/message_test.go @@ -13,7 +13,7 @@ func TestMessageSimpleWrap(t *testing.T) { payload := []byte("hello world") msg := NewMessage(payload) - if _, err := msg.Wrap(DefaultPow, Options{}); err != nil { + if _, err := msg.Wrap(DefaultProofOfWork, Options{}); err != nil { t.Fatalf("failed to wrap message: %v", err) } if msg.Flags&128 != 0 { @@ -36,7 +36,7 @@ func TestMessageCleartextSignRecover(t *testing.T) { payload := []byte("hello world") msg := NewMessage(payload) - if _, err := msg.Wrap(DefaultPow, Options{ + if _, err := msg.Wrap(DefaultProofOfWork, Options{ From: key, }); err != nil { t.Fatalf("failed to sign message: %v", err) @@ -69,7 +69,7 @@ func TestMessageAnonymousEncryptDecrypt(t *testing.T) { payload := []byte("hello world") msg := NewMessage(payload) - envelope, err := msg.Wrap(DefaultPow, Options{ + envelope, err := msg.Wrap(DefaultProofOfWork, Options{ To: &key.PublicKey, }) if err != nil { @@ -104,7 +104,7 @@ func TestMessageFullCrypto(t *testing.T) { payload := []byte("hello world") msg := NewMessage(payload) - envelope, err := msg.Wrap(DefaultPow, Options{ + envelope, err := msg.Wrap(DefaultProofOfWork, Options{ From: fromKey, To: &toKey.PublicKey, }) |