Files
stacks-puppet-node/blockstack/lib/operations/preorder.py
2016-06-14 11:31:04 -04:00

39 lines
1.6 KiB
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Blockstack
~~~~~
copyright: (c) 2014-2015 by Halfmoon Labs, Inc.
copyright: (c) 2016 by Blockstack.org
This file is part of Blockstack
Blockstack is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Blockstack is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Blockstack. If not, see <http://www.gnu.org/licenses/>.
"""
# consensus hash fields (ORDER MATTERS!)
FIELDS = [
'preorder_name_hash', # hash(name,sender,register_addr)
'consensus_hash', # consensus hash at time of send
'sender', # scriptPubKey hex that identifies the principal that issued the preorder
'sender_pubkey', # if sender is a pubkeyhash script, then this is the public key
'address', # address from the sender's scriptPubKey
'block_number', # block number at which this name was preordered for the first time
'op', # blockstack bytestring describing the operation
'txid', # transaction ID
'vtxindex', # the index in the block where the tx occurs
'op_fee', # blockstack fee (sent to burn address)
]