getResourceAccountAddress static method
Takes source address and seeds, derive and returns the resource account address
Implementation
static HexString getResourceAccountAddress(String sourceAddress, Uint8List seed) {
final source = bcsToBytes(AccountAddress.fromHex(sourceAddress));
final bytes = Uint8List.fromList([...source, ...seed, AuthenticationKey.DERIVE_RESOURCE_ACCOUNT_SCHEME]);
return HexString.fromUint8Array(sha3256(bytes));
}