SIP: 10 Layer: Core Title: Coin Address Alias (Extended Transaction) Author: Brian Burrell < bburrell@neo-natura.com > Comments-Summary: No comments yet. Comments-URI: https://github.com/neonatura/shioncoin/doc/standards/Comments:sip10.wiki Status: Final Type: Standard Track Created: 2018-12-29 License: PD
The context name typically includes a colon-ized prefix (i.e. "url: http://domain.com") and the data content is typically in JSON format.
The context name is stored as a 160-bit hash digest of a label defined for it. In addition, a small summary title is stored. It is expected to know the name before-hand in order to retrieve the value associated with it.
A new context is created using the OP_EXT_NEW opcode. A context is updated using the OP_EXT_UPDATE opcode.
The maximum size of the data payload is 4MB.
A context will expire after 2 years after it has been created or updated.
The name of the context is typically in a URI format indicating the group of information and a particular entity of that group.
The value of the context is typically in JSON and tends to use "common names" for variables in order to provide compatibility between applications. File formats containing gzip, bz1, rar, jpeg, zip, xz, shz, gif, png, and windows executable data is prohibited.
{double base = ((nHeight 1) / 10240) 1; double nRes = 5200 / base * COIN; double nDif = 5000 /base * COIN; int64 nFee = (int64)(nRes - nDif); double nFact;
nFact = 4096 / (double)MIN(4096, MAX(32, nSize)); nFee = (int64)((double)nFee / nFact); /* floor */ nFee /= 100000; nFee *= 100000; nFee = MAX(100000, nFee); nFee = MIN(100000000000, nFee); return (nFee / COIN);}
A context is signed with "secp160r1" ECDSA using a private key derived from the content's name hash and a message composed of the data payload. This signature is provided for integrity purposes only.
"name" A common name of the location. "code" A "place type" code (i.e. "AREA"). "country" The country code associated with this location. "summary" A description of the location.