schemeToFlag static method
Implementation
static int schemeToFlag(SignatureScheme scheme) {
switch (scheme) {
case SignatureScheme.Ed25519:
return Ed25519;
case SignatureScheme.Secp256k1:
return Secp256k1;
case SignatureScheme.Secp256r1:
return Secp256r1;
case SignatureScheme.MultiSig:
return MultiSig;
case SignatureScheme.ZkLogin:
return ZkLogin;
default:
throw ArgumentError("Undefined Signature Scheme $scheme");
}
}