代码拉取完成,页面将自动刷新
package network
// SignCallback is a callback function for signing.
type SignCallback func(status int, message string, signBytes []byte)
// VerifyCallback is a callback function for signature verification.
type VerifyCallback func(status int, message string, verifyResult bool)
// Account interface represents an account.
type Account interface {
// GetPubKey returns the public key of this account.
GetPubKey() []byte
// Sign signs a message with this account's secret key.
Sign(message []byte, callback SignCallback)
// Verify verifies the signature of this account.
Verify(signBytes []byte, message []byte, callback VerifyCallback)
// SetProperty sets a property for this algorithm account. Plugin can save some extra data of this account if needed.
// Notices that the properties belong to the keyPair, if default keyPair changes, properties would be changed.
SetProperty(key string, value string)
// GetProperty retrieves a property for this algorithm account of a certain key.
GetProperty(key string) string
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。