Documentation
¶
Index ¶
- Constants
- Variables
- func CanonicalFullPath(accountPath, childPath string) string
- func CanonicalHashPayloadV1(in Context) ([]byte, error)
- func DecodeUncompressedSecp256k1Hex(input string) (*tsscrypto.ECPoint, error)
- func EncodeECPointUncompressedSecp256k1(point *tsscrypto.ECPoint) (string, error)
- func EncodeUncompressedSecp256k1(pub *ecdsa.PublicKey) string
- func HashV1(in Context) (string, error)
- func IsECDSAAlgorithm(algorithm string) bool
- func MatchSession(ctx Context, session Session) error
- func NormalizeAccountPath(raw string) (string, error)
- func NormalizeChildPath(raw string) (string, []uint32, error)
- func NormalizeFullPath(raw string) (string, error)
- func ParseChainCodeHex(input string) ([]byte, error)
- func ParseChildPath(raw string) ([]uint32, error)
- func ValidateDKGMaterial(algorithm string, material DKGMaterial) ([]byte, string, error)
- func ValidateUncompressedSecp256k1Hex(input string) error
- type Context
- type DKGMaterial
- type ECDSAChildKey
- type PreparedECDSASigningShare
- type Session
Constants ¶
View Source
const ( AlgorithmECDSA = "ecdsa" AlgorithmEdDSA = "eddsa" CurveSecp256k1 = "secp256k1" CurveEd25519 = "ed25519" DerivationSchemeBIP32Secp256k1 = "bip32_secp256k1" DerivationSchemeBIP32Public = "bip32_public" DerivationSchemeSLIP10Ed25519 = "slip10_ed25519" PublicKeyFormatUncompressedHex = "uncompressed_hex" )
Variables ¶
View Source
var ( ErrDerivationContextRequired = errors.New("derivation context required") ErrInvalidDerivationContext = errors.New("invalid derivation context") ErrUnsupportedDerivationScheme = errors.New("unsupported derivation scheme") ErrDerivationPathInvalid = errors.New("derivation path invalid") ErrDerivationContextMismatch = errors.New("derivation context mismatch") ErrChainCodeMissing = errors.New("chain code missing") ErrChainCodeInvalid = errors.New("chain code invalid") ErrDerivedSigningUnsupported = errors.New("derived signing unsupported") ErrUnsupportedAlgorithmCurve = errors.New("unsupported algorithm curve") )
Functions ¶
func CanonicalFullPath ¶
func CanonicalHashPayloadV1 ¶
func IsECDSAAlgorithm ¶
func MatchSession ¶
func NormalizeAccountPath ¶
func NormalizeFullPath ¶
func ParseChainCodeHex ¶
func ParseChildPath ¶
func ValidateDKGMaterial ¶
func ValidateDKGMaterial(algorithm string, material DKGMaterial) ([]byte, string, error)
Types ¶
type Context ¶
type Context struct {
ProfileID string
ProfileTemplateID string
Chain string
Algorithm string
Curve string
Scheme string
PublicKeyFormat string
AccountPath string
ChildPath string
FullPath string
AddressEncoding string
ExpectedAddress string
DerivedPublicKey string
Descriptor string
DescriptorVersion uint32
ProfileVersion uint32
KeyVersion uint32
}
func NormalizeContext ¶
type DKGMaterial ¶
type ECDSAChildKey ¶
type ECDSAChildKey struct {
PublicKey *ecdsa.PublicKey
PublicKeyHex string
KeyDerivationDelta *big.Int
}
func DeriveECDSAChildKey ¶
type PreparedECDSASigningShare ¶
type PreparedECDSASigningShare struct {
}
func PrepareECDSASigningShare ¶
func PrepareECDSASigningShare(share ecdsakeygen.LocalPartySaveData, chainCode []byte, ctx Context) (PreparedECDSASigningShare, error)
Click to show internal directories.
Click to hide internal directories.