Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NIST Nist // = 1 // 国密 Gm // = 2 )
定义创建账户时产生的助记词中的标记符的值,及其所对应的椭圆曲线密码学算法的类型
View Source
const ( // 预留标记位的类型1 ReservedType1 // 预留标记位的类型2 ReservedType2 )
定义创建账户时产生的助记词中的标记符的值,及其所对应的预留标记位的类型
View Source
const ( // 美国Federal Information Processing Standards的椭圆曲线 CurveNist = "P-256" // 国密椭圆曲线 CurveGm = "SM2-P-256" )
定义公私钥中所包含的标记符的值,及其所对应的椭圆曲线密码学算法的类型
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.