mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-23 11:27:38 +08:00
38 lines
1.6 KiB
Python
38 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 = [
|
|
'namespace_id_hash', # hash(namespace_id,sender,reveal_addr)
|
|
'consensus_hash', # consensus hash at the time issued
|
|
'op', # bytecode describing the operation (not necessarily 1 byte)
|
|
'op_fee', # fee paid for the namespace to the burn address
|
|
'txid', # transaction ID
|
|
'vtxindex', # the index in the block where the tx occurs
|
|
'block_number', # block number at which this transaction occurred
|
|
'sender', # scriptPubKey hex from the principal that issued this preorder (identifies the preorderer)
|
|
'sender_pubkey', # if sender is a p2pkh script, this is the public key.
|
|
'address' # address from the scriptPubKey
|
|
]
|
|
|