示例#1
0
func (h *HeartbeatUpdate) Sign(key *ecdsa.PrivateKey) {
	h.Signature = libytc.SignMap(nil, h.String(), key)
}
示例#2
0
func (k *SpaceUpdate) Sign(key *ecdsa.PrivateKey) {
	k.Signature = libytc.SignMap(k.Signature, k.String(), key)
	return
}
示例#3
0
func (t *TransferUpdate) Sign(key *ecdsa.PrivateKey) {
	t.Signature = libytc.SignMap(nil, t.String(), key)
	return
}
示例#4
0
func (l *LocationUpdate) Sign(key *ecdsa.PrivateKey) {
	l.Signature = libytc.SignMap(nil, l.String(), key)
	return
}