func signRecord(rec *sync.Record, writer *crypto.SecretIdentity) { hash := crypto.HashOf(rec.RecordType, rec.Topic, rec.Key, rec.Value, rec.Priority) sig := writer.Sign(hash) rec.Author = writer.Fingerprint().String() rec.Signature = transfer.AsBytes(sig) }