addrFromWots static method
Derives an address from a WOTS public key. @param wots The WOTS public key as a byte array. @returns The derived address as a byte array, or null if the WOTS public key length is invalid.
Implementation
static Uint8List? addrFromWots(Uint8List wots) {
if (wots.length != WOTS_PK_LEN) {
return null;
}
final hash = addrHashGenerate(wots.sublist(0, WOTS_PK_LEN));
return addrFromImplicit(hash);
}