Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CURVE = elliptic.P256()
)
Functions ¶
func Verify ¶
func Verify(m string, sig CertcoinSignature, pk CertcoinPublicKey) bool
Types ¶
type CertcoinPublicKey ¶
type CertcoinSecretKey ¶
type CertcoinSecretKey struct { PublicKey CertcoinPublicKey `json:"public_key"` D *big.Int `json:"d"` }
func NewKey ¶
func NewKey() CertcoinSecretKey
type CertcoinSignature ¶
func Sign ¶
func Sign(m string, sk CertcoinSecretKey) CertcoinSignature
type SHA256Sum ¶
type SHA256Sum [32]byte
func Address ¶
func Address(pk CertcoinPublicKey) SHA256Sum
func CertcoinHash ¶
func CertcoinHashStr ¶
Click to show internal directories.
Click to hide internal directories.