rivkFromScope method
Implementation
OrchardCommitIvkRandomness rivkFromScope(Bip44Changes scope) {
switch (scope) {
case Bip44Changes.chainExt:
return rivk;
case Bip44Changes.chainInt:
final k = rivk.toBytes();
final ak = this.ak.toBytes();
final nk = this.nk.toBytes();
final scalar = blockchainUtils.api.pallas.scReduce64(
PrfExpand.orchardRivkInternal.apply(k, data: [ak, nk]),
);
return OrchardCommitIvkRandomness.fromBytes(scalar);
}
}