Skip to content

Commit

Permalink
Add test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaRedHand committed Apr 22, 2024
1 parent c3cd4be commit 1fc8bdb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/unit/keystore_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ defmodule Unit.KeystoreTest do
})

test "eip scrypt test vector" do
{_pubkey, secret} = Keystore.decode_str!(@scrypt_json, @eip_password)
{pubkey, secret} = Keystore.decode_str!(@scrypt_json, @eip_password)

expected_pubkey =
Base.decode16!(
"9612D7A727C9D0A22E185A1C768478DFE919CADA9266988CB32359C11F2B7B27F4AE4040902382AE2910C15E2B420D07"
)

assert secret == @eip_secret
assert pubkey == expected_pubkey
end
end

0 comments on commit 1fc8bdb

Please sign in to comment.