Пример #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
}