Ed25519HDPublicKey.fromBase58 constructor
Ed25519HDPublicKey.fromBase58(
- String data
Implementation
factory Ed25519HDPublicKey.fromBase58(String data) {
final bytes = base58decode(data);
if (bytes.length != 32) {
throw ArgumentError.value(
data,
'data',
'Expected 32 bytes, got ${bytes.length}',
);
}
return Ed25519HDPublicKey(bytes);
}