types

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyshareExtraTag

type KeyshareExtraTag uint16
const (
	/// Permissions tag of key share extra data.
	Permissions KeyshareExtraTag = iota + 1
)

type NodeAttestation

type NodeAttestation string

NodeAttestation represents the attestation method for a node

const (
	// Connect to the node using TLS. Node will send self-signed certificate with SGX quote in it.
	// Use custom TLS certificate verifier that checks the SGX embedded quote.
	SgxAttest NodeAttestation = "sgx"
	// Connect to the node using TLS. Node will send self-signed certificate with GCC attestation token in it.
	// Use custom TLS certificate verifier that checks the GCC embedded attestation token.
	GcpAttest NodeAttestation = "gcp"
	// NoneAttest - no remote attestation verification
	NoneAttest NodeAttestation = "none"
)

func (*NodeAttestation) UnmarshalJSON

func (n *NodeAttestation) UnmarshalJSON(data []byte) error

type SignatureAlgorithm

type SignatureAlgorithm string

SignatureAlgorithm represents the MPC signature algorithm options.

const (
	// ED25519 specifies the Ed25519 signature algorithm.
	ED25519 SignatureAlgorithm = "ed25519"

	// SECP256k1 specifies the secp256k1 signature algorithm.
	SECP256k1 SignatureAlgorithm = "secp256k1"

	// RFC_EDDSA specifies the RFC compliant EdDSA signature algorithm.
	// https://www.rfc-editor.org/rfc/rfc8032#section-5.1.5
	RFC_EDDSA SignatureAlgorithm = "rfc_eddsa"
)

func (SignatureAlgorithm) String

func (sa SignatureAlgorithm) String() string

func (*SignatureAlgorithm) UnmarshalJSON

func (sa *SignatureAlgorithm) UnmarshalJSON(data []byte) error

type TaggedValue

type TaggedValue struct {
	Tag   KeyshareExtraTag `json:"tag"`
	Value string           `json:"value"`
}

Specific data structure for key share extra data.

Jump to

Keyboard shortcuts

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