hexCredentialsDerivation method
- @SquadronMethod()
- @stringListMarshaler
- @bip32PublicKeyKeyMarshaler Bip32PublicKey pubKey,
- int startIndexInclusive,
- int endIndexExclusive
Implementation
@SquadronMethod()
@stringListMarshaler
Future<List<String>> hexCredentialsDerivation(
// verify key is the public key
@bip32PublicKeyKeyMarshaler Bip32PublicKey pubKey,
int startIndexInclusive,
int endIndexExclusive,
) async =>
List.generate(
endIndexExclusive - startIndexInclusive,
(index) => blake2bHash224(
Bip32Ed25519KeyDerivation.instance.ckdPub(pubKey, startIndexInclusive + index).rawKey,
).hexEncode(),
);