Documentation ¶
Overview ¶
Package magic is a library for working with Magic Attribute Protocol and used in conjunction with a Tape from BOB transaction
Protocol: https://github.com/rohenaz/MAP BOB: https://bob.planaria.network/
If you have any suggestions or comments, please feel free to open an issue on this GitHub repository!
By BitcoinSchema Organization (https://bitcoinschema.org)
Index ¶
Constants ¶
View Source
const ( MapKeyKey = "key" MapValueKey = "value" MapAppKey = "app" MapTypeKey = "type" )
MAP Keys
Variables ¶
View Source
var ( Cmd = "CMD" Set = "SET" Add = "ADD" Delete = "DELETE" Remove = "REMOVE" Select = "SELECT" TxID = "TXID" SelectCmd = "SELECT_CMD" )
MAP Commands
View Source
var Prefix = "1PuQa7K62MiKCtssSLKy1kh56WWU7MtUR5"
Prefix is the Bitcom prefix for Magic Attribute Protocol
Functions ¶
This section is empty.
Types ¶
type MAP ¶
type MAP map[string]interface{} // `json:"MAP,omitempty" bson:"MAP, omitempty"`
MAP is Magic Attribute Protocol
func NewFromTape ¶
NewFromTape takes a tape and returns a new MAP
Click to show internal directories.
Click to hide internal directories.