mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-05 21:35:49 +00:00
Update ripple-address-codec dependency
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
"bn.js": "^3.1.1",
|
||||
"elliptic": "^5.1.0",
|
||||
"hash.js": "^1.0.3",
|
||||
"ripple-address-codec": "^1.2.2"
|
||||
"ripple-address-codec": "^1.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"assert-diff": "^1.0.1",
|
||||
|
||||
@@ -229,7 +229,7 @@ K256Pair.prototype.verify = function(message, signature) {
|
||||
|
||||
function keyPairFromSeed(seedString) {
|
||||
const decoded = codec.decodeSeed(seedString);
|
||||
const pair = decoded.type === 'EdSeed' ? Ed25519Pair : K256Pair;
|
||||
const pair = decoded.type === 'ed25519' ? Ed25519Pair : K256Pair;
|
||||
return pair.fromSeed(decoded.bytes);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user