mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-25 03:56:34 +00:00
6b21ad9922
Everywhere including examples, external interop APIs, bindings generators code and in other valuable places. A couple of `interface{}` usages are intentionally left in the CHANGELOG.md, documentation and tests.
24 lines
560 B
Go
24 lines
560 B
Go
package transaction
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/io"
|
|
)
|
|
|
|
// NotaryAssisted represents attribute for notary service transactions.
|
|
type NotaryAssisted struct {
|
|
NKeys uint8 `json:"nkeys"`
|
|
}
|
|
|
|
// DecodeBinary implements the io.Serializable interface.
|
|
func (n *NotaryAssisted) DecodeBinary(br *io.BinReader) {
|
|
n.NKeys = br.ReadB()
|
|
}
|
|
|
|
// EncodeBinary implements the io.Serializable interface.
|
|
func (n *NotaryAssisted) EncodeBinary(w *io.BinWriter) {
|
|
w.WriteB(n.NKeys)
|
|
}
|
|
|
|
func (n *NotaryAssisted) toJSONMap(m map[string]any) {
|
|
m["nkeys"] = n.NKeys
|
|
}
|