scheme

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2026 License: Apache-2.0 Imports: 0 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SignatureFlagToScheme = map[byte]SignatureScheme{
	0x00: ED25519,
	0x01: Secp256k1,
	0x02: Secp256r1,
	0x03: MultiSig,
	0x05: ZkLogin,
}
View Source
var SignatureSchemeToFlag = map[SignatureScheme]byte{
	ED25519:   0x00,
	Secp256k1: 0x01,
	Secp256r1: 0x02,
	MultiSig:  0x03,
	ZkLogin:   0x05,
}
View Source
var SignatureSchemeToSize = map[SignatureScheme]int{
	ED25519:   32,
	Secp256k1: 33,
	Secp256r1: 33,
}

Functions

This section is empty.

Types

type SignatureScheme

type SignatureScheme string
const (
	ED25519   SignatureScheme = "ED25519"
	Secp256k1 SignatureScheme = "Secp256k1"
	Secp256r1 SignatureScheme = "Secp256r1"
	MultiSig  SignatureScheme = "MultiSig"
	ZkLogin   SignatureScheme = "ZkLogin"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL