OSDN Git Service
(root)
/
bytom
/
bytom-spv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
optimise hsm test
[bytom/bytom-spv.git]
/
blockchain
/
pseudohsm
/
pseudohsm_test.go
diff --git
a/blockchain/pseudohsm/pseudohsm_test.go
b/blockchain/pseudohsm/pseudohsm_test.go
index
ea69ad2
..
ef4fe2c
100644
(file)
--- a/
blockchain/pseudohsm/pseudohsm_test.go
+++ b/
blockchain/pseudohsm/pseudohsm_test.go
@@
-134,6
+134,11
@@
func TestSignAndVerifyMessage(t *testing.T) {
if !ed25519.Verify(xpub.XPub.PublicKey(), []byte(msg), sig) {
t.Fatal("verify sign failed")
}
+
+ err = hsm.XDelete(xpub.XPub, "password")
+ if err != nil {
+ t.Fatal(err)
+ }
}
func BenchmarkSign(b *testing.B) {