Skip to content

Commit

Permalink
add too big index test
Browse files Browse the repository at this point in the history
  • Loading branch information
olegshmuelov committed Jan 18, 2024
1 parent d44b38a commit 7f40f5e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/hd_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,16 @@ func TestDerivableKeyRelativePathDerivation(t *testing.T) {
expectedKey: _bigIntFromSkHex("aaa63a09aa2c0ce6a2a29940df8981eeefac0ea193bf90f2e06edd41356054f2907bc2e1eb5aaa4097361841914cd274"),
},
{
name: "bad path",
name: "Base account derivation (too big index)",
seed: _byteArray("0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1fff"),
path: "0/0", // after basePath
err: errors.New("invalid relative path. Example: /1/2/3"),
expectedKey: nil,
path: "/1000/0", // after basePath
err: nil,
expectedKey: _bigIntFromSkHex("843e5a2e02693309cc14de8ee6b616bffc7a1aa16d670ff906a39bd3792630917b325669b1c9057d4209bf153e7ba7b5"),
},
{
name: "too large of an index, bad path",
name: "bad path",
seed: _byteArray("0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1fff"),
path: "/1000/0", // after basePath
path: "0/0", // after basePath
err: errors.New("invalid relative path. Example: /1/2/3"),
expectedKey: nil,
},
Expand Down

0 comments on commit 7f40f5e

Please sign in to comment.