(opType OperationType, author identity.Interface, unixTime int64)
| 116 | } |
| 117 | |
| 118 | func NewOpBase(opType OperationType, author identity.Interface, unixTime int64) OpBase { |
| 119 | return OpBase{ |
| 120 | OperationType: opType, |
| 121 | author: author, |
| 122 | UnixTime: unixTime, |
| 123 | Nonce: makeNonce(20), |
| 124 | id: entity.UnsetId, |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | func makeNonce(len int) []byte { |
| 129 | result := make([]byte, len) |