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