Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ECDSA签名算法 ECDSA = "ECDSA" // Schnorr签名算法,EDDSA的前身 Schnorr = "Schnorr" // Schnorr环签名算法 SchnorrRing = "SchnorrRing" // 多重签名算法 MultiSig = "MultiSig" // 门限签名算法 TssSig = "TssSig" // Bls签名算法 BlsSig = "BlsSig" )
定义签名中所包含的标记符的值,及其所对应的签名算法的类型
Variables ¶
View Source
var ( InvalidInputParamsError = errors.New("Invalid input params") NotExactTheSameCurveInputError = errors.New("The private keys of all the keys are not using the the same curve") TooSmallNumOfkeysError = errors.New("The total num of keys should be greater than one") EmptyMessageError = errors.New("Message to be sign should not be nil") InValidSignatureError = errors.New("XuperSignature is invalid") )
Functions ¶
func MarshalXuperSignature ¶
func MarshalXuperSignature(sig *XuperSignature) ([]byte, error)
Types ¶
type PublicKeyFactor ¶
type RingSignature ¶
Schnorr环签名
Click to show internal directories.
Click to hide internal directories.