NewUpdatePermission returns new instance.
(header *UpdatePermissionHeader)
| 48 | |
| 49 | // NewUpdatePermission returns new instance. |
| 50 | func NewUpdatePermission(header *UpdatePermissionHeader) *UpdatePermission { |
| 51 | return &UpdatePermission{ |
| 52 | UpdatePermissionHeader: *header, |
| 53 | TransactionTypeMixin: *interfaces.NewTransactionTypeMixin(interfaces.TransactionTypeUpdatePermission), |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | // Sign implements interfaces/Transaction.Sign. |
| 58 | func (up *UpdatePermission) Sign(signer *asymmetric.PrivateKey) (err error) { |