Skip to content

Instantly share code, notes, and snippets.

@asoltys
Created January 4, 2013 02:15
Show Gist options
  • Save asoltys/4449367 to your computer and use it in GitHub Desktop.
Save asoltys/4449367 to your computer and use it in GitHub Desktop.
adam@B093075:~$ opentxs exportcert
Welcome to Open Transactions -- version 0.88.e
Contract FAILED to verify.
Using as server: gI301UJlZvagV64BilwmR4UBpBJl9Junwd5sqF9dPfH
Using as mynym: tQXYgNCvAlCR7WsMXMlMEeoyYAJypKZgZ2cFgXVaG1D
USAGE: exportcert --mynym NYM_ID
Passphrase request for: "Enter new passphrase for exported Nym."
(OT) passphrase:
(Verifying) passphrase again:
SUCCESS exporting Cert for NymID: tQXYgNCvAlCR7WsMXMlMEeoyYAJypKZgZ2cFgXVaG1D
-----BEGIN ENCRYPTED PRIVATE KEY-----
MIICxjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIPGNG7UR+lsACAggA
MBQGCCqGSIb3DQMHBAgA4hr9hNUBswSCAoBmf/qJx/qyaiY9YSWTu0yzYc+bZ7kT
ujX9C73JhQ904Rywz90ta29ltV9DfI+PNYOPdgOrQ12rF9YXJF1QI1476CMiCeKq
6YBXVd+OLe0wMw1CopemPI/8Z38UO9GoBgn+kyvtkMQKZGGfFmH5Ba+HQfFh1vse
x/eiY7r97vD9HkjG4jX0aaGOQ+0ligPbwup4IY83+K6A11ONcs6jdRZPX3+419ay
4G1qtY/3AjZyyNaTGwejFkAuupe0B5RgKBE6+rzjQ3AtXINDpp43LGFVXq3fWrju
cK+VqqpVjHGl0gVRjk+GFHBovtrVEXl3A122buvPRLLS2tmJk47tq8FqS7XjgRhb
wSWAk/0n4uCf+6eL2Me1PgCZ3U4KSf9B45j8jONP71r8llrZXdP4P5L5xLJ5WUCS
39HbhoTsGEUqzwcX/FeuKYv7DsyxI2RVT+QX/0Tq4uIJ+MrF7cI4RdhsJ+pa0DjT
yXXceYOylfBCvZT/qQ7IIcdr1WtiV4KtlJTc8WPvYLlH41Ztik8Ve9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iaHjorTxWhLrQSPrHHsm6
MnhVRnZbVJljF88ZxtQmFK5iyXVNOv19oIfmb1AbQ0b68JkGBdtBIgPdoS3XsUAH
fEq1
-----END CERTIFICATE-----
adam@B093075:~$ opentxs shownyms
Welcome to Open Transactions -- version 0.88.e
Contract FAILED to verify.
Using as server: gI301UJlZvagV64BilwmR4UBpBJl9Junwd5sqF9dPfH
Using as mynym: tQXYgNCvAlCR7WsMXMlMEeoyYAJypKZgZ2cFgXVaG1D
------------------------------------------------------------------
** PSEUDONYMS:
4iDbR0jJkffEIg26ULd5S3snsAdepx2RPiCc6F094xB --- Test
tQXYgNCvAlCR7WsMXMlMEeoyYAJypKZgZ2cFgXVaG1D --- Adam
adam@B093075:~$ opentxs newasset
Welcome to Open Transactions -- version 0.88.e
Contract FAILED to verify.
Using as server: gI301UJlZvagV64BilwmR4UBpBJl9Junwd5sqF9dPfH
Using as mynym: tQXYgNCvAlCR7WsMXMlMEeoyYAJypKZgZ2cFgXVaG1D
Please enter the XML contents for the contract, followed by an EOF or a ~ by itself on a blank line:
<?xml version="1.0"?>
<digitalAssetContract version="1.0">
<entity shortname="digiBTC"
longname="Digital Bitcoin Tokens"
email="[email protected] or [email protected]"/>
<issue company="Vancouver Bitcoin"
email="[email protected] or [email protected]"
contractUrl="vanbtc.ca/ot/contracts/digiBTC"
type="currency"/>
<currency name="digiBTC" tla="dBTC" symbol="dBTC"
type="decimal" factor="1" decimal_power="0" fraction=""/>
<!-- CONDITIONS -->
<condition name="backing">
Digital Bitcoin Tokens are backed by actual bitcoin, held in reserve by Vancouver Bitcoin
at 14Ch4z1asqNYvisoKzY4NTTXL3PTHHxKhn on the bitcoin blockchain.
</condition>
<condition name="audit">
Vancouver Bitcoin's reserves can be audited, at anytime, by viewing 14Ch4z1asqNYvisoKzY4NTTXL3PTHHxKhn
on the bitcoin blockchain.
</condition>
<condition name="purchase">
Digital Bitcoin Tokens can be purchased with bitcoin, or any other asset—for an agreed upon exchange
rate—at vanbtc.ca/ot/purchase. Any assets exchanged for Digital Bitcoin Tokens, such as cash, will be
exchanged for bitcoin then transferred into Vancouver Bitcoin's minting account at
14Ch4z1asqNYvisoKzY4NTTXL3PTHHxKhn on the bitcoin blockchain, before, Digital Bitcoin Tokens will be
minted and issued to the purchaser. This guarantees 100% reserves in the minting account.
</condition>
<condition name="redemption">
Digital Bitcoin Tokens can be redeemed at vanbtc.ca/redeem.
</condition>
<condition name="rate">
Issuance and redemption will be performed for a .25% fee by Vancouver Bitcoin, this fee pays for
administration and server expenses etc.
</condition>
<condition name="buyback">
The Issuer reserves the right to buy back all outstanding currency, thereby terminating the use of this
instrument.
</condition>
<condition name="liability">
Vancouver Bitcoin is in no way liable for the Digital Bitcoin Tokens that it mints and issues; however,
Vancouver Bitcoin will buy back any Digital Bitcoin Tokens it has issued, and for which it has the
equivalent amount of bitcoin is held in reserve at 14Ch4z1asqNYvisoKzY4NTTXL3PTHHxKhn on the bitcoin
blockchain.
</condition>
<condition name="mint">
The total quantity of Digital Bitcoin Tokens, minted by Vancouver Bitcoin, will be the
exact amount of bitcoin held in Vancouver Bitcoin's reserve account
at 14Ch4z1asqNYvisoKzY4NTTXL3PTHHxKhn on the bitcoin blockchain. Vancouver Bitcoin mints
Digital Bitcoin Tokens from actual bitcoin—JUST LIKE GOLD MINTS MINT GOLD COINS OUT OF ACTUAL GOLD.
</condition>
<condition name="privacy">
The purchase and exchange of Digital Bitcoin Tokens are conducted on the basis of strong privacy.
</condition>
<!-- KEYS -->
<key name="contract">
- -----BEGIN CERTIFICATE-----
MIICPzCCAaigAwIBAgIBADANBgkqhkiG9w0BAQQFADAlMQswCQYDVQQGEwJVSzEW
MBQGA1UEAxMNT3BlblNTTCBHcm91cDAeFw0xMzAxMDMyMzIwMjRaFw0yMzAxMDEy
MzIwMjRaMCUxCzAJBgNVBAYTAlVLMRYwFAYDVQQDEw1PcGVuU1NMIEdyb3VwMIGf
MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC/rXKpaCFSpYqX3E3uz48sMSzAvwnw
Ua9NWgPe0E3kBZyDDbQXLUASqxh8rYc8Li4XDZXmPMkTJf6thX41OvA/aIwOr00u
6CE4kBPoyYAvOItCpGGVL0nUc5E95pgQYjHipdpcTN19Ti1k9IwHR7rl1vrluwZK
Z0/8ldD6LndkWwIDAQABo38wfTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQE
AwIBBjAdBgNVHQ4EFgQUx+bPecCXidot0BPat6fWRGdkwGowEQYJYIZIAYb4QgEB
BAQDAgIEMCgGCWCGSAGG+EIBDQQbFhlleGFtcGxlIGNvbW1lbnQgZXh0ZW5zaW9u
MA0GCSqGSIb3DQEBBAUAA4GBAJ1qizzkkdFYlz3ue6/2DZ2HK0Yk/YKWQ8Dyhki5
3ch+Fky6DnqGM5ikQEQRTmgFVyJbLm5dbm3xdGo0oORiaHjorTxWhLrQSPrHHsm6
MnhVRnZbVJljF88ZxtQmFK5iyXVNOv19oIfmb1AbQ0b68JkGBdtBIgPdoS3XsUAH
fEq1
- -----END CERTIFICATE-----
</key>
</digitalAssetContract>
~
-------------------------------------------
New Contract ID: habd8gMGFCRuN4qKIa5n9yzsLiDVnIe0HOdHfWUSBBi
-------------------------------------------
New Contract:
-----BEGIN SIGNED CONTRACT-----
Hash: SAMY
<?xml version="1.0"?>
<digitalAssetContract version="1.0">
<entity shortname="digiBTC"
longname="Digital Bitcoin Tokens"
email="[email protected] or [email protected]"/>
<issue company="Vancouver Bitcoin"
email="[email protected] or [email protected]"
contractUrl="vanbtc.ca/ot/contracts/digiBTC"
type="currency"/>
<currency name="digiBTC" tla="dBTC" symbol="dBTC"
type="decimal" factor="1" decimal_power="0" fraction=""/>
<!-- CONDITIONS -->
<condition name="backing">
Digital Bitcoin Tokens are backed by actual bitcoin, held in reserve by Vancouver Bitcoin
at 14Ch4z1asqNYvisoKzY4NTTXL3PTHHxKhn on the bitcoin blockchain.
</condition>
<condition name="audit">
Vancouver Bitcoin's reserves can be audited, at anytime, by viewing 14Ch4z1asqNYvisoKzY4NTTXL3PTHHxKhn
on the bitcoin blockchain.
</condition>
<condition name="purchase">
Digital Bitcoin Tokens can be purchased with bitcoin, or any other asset—for an agreed upon exchange
rate—at vanbtc.ca/ot/purchase. Any assets exchanged for Digital Bitcoin Tokens, such as cash, will be
exchanged for bitcoin then transferred into Vancouver Bitcoin's minting account at
14Ch4z1asqNYvisoKzY4NTTXL3PTHHxKhn on the bitcoin blockchain, before, Digital Bitcoin Tokens will be
minted and issued to the purchaser. This guarantees 100% reserves in the minting account.
</condition>
<condition name="redemption">
Digital Bitcoin Tokens can be redeemed at vanbtc.ca/redeem.
</condition>
<condition name="rate">
Issuance and redemption will be performed for a .25-0.000000ee by Vancouver Bitcoin, this fee pays for
administration and server expenses etc.
</condition>
<condition name="buyback">
The Issuer reserves the right to buy back all outstanding currency, thereby terminating the use of this
instrument.
</condition>
<condition name="liability">
Vancouver Bitcoin is in no way liable for the Digital Bitcoin Tokens that it mints and issues; however,
Vancouver Bitcoin will buy back any Digital Bitcoin Tokens it has issued, and for which it has the
equivalent amount of bitcoin is held in reserve at 14Ch4z1asqNYvisoKzY4NTTXL3PTHHxKhn on the bitcoin
blockchain.
</condition>
<condition name="mint">
The total quantity of Digital Bitcoin Tokens, minted by Vancouver Bitcoin, will be the
exact amount of bitcoin held in Vancouver Bitcoin's reserve account
at 14Ch4z1asqNYvisoKzY4NTTXL3PTHHxKhn on the bitcoin blockchain. Vancouver Bitcoin mints
Digital Bitcoin Tokens from actual bitcoin—JUST LIKE GOLD MINTS MINT GOLD COINS OUT OF ACTUAL GOLD.
</condition>
<condition name="privacy">
The purchase and exchange of Digital Bitcoin Tokens are conducted on the basis of strong privacy.
</condition>
<!-- KEYS -->
<key name="contract">
- -----BEGIN CERTIFICATE-----
MIICPzCCAaigAwIBAgIBADANBgkqhkiG9w0BAQQFADAlMQswCQYDVQQGEwJVSzEW
MBQGA1UEAxMNT3BlblNTTCBHcm91cDAeFw0xMzAxMDMyMzIwMjRaFw0yMzAxMDEy
MzIwMjRaMCUxCzAJBgNVBAYTAlVLMRYwFAYDVQQDEw1PcGVuU1NMIEdyb3VwMIGf
MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC/rXKpaCFSpYqX3E3uz48sMSzAvwnw
Ua9NWgPe0E3kBZyDDbQXLUASqxh8rYc8Li4XDZXmPMkTJf6thX41OvA/aIwOr00u
6CE4kBPoyYAvOItCpGGVL0nUc5E95pgQYjHipdpcTN19Ti1k9IwHR7rl1vrluwZK
Z0/8ldD6LndkWwIDAQABo38wfTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQE
AwIBBjAdBgNVHQ4EFgQUx+bPecCXidot0BPat6fWRGdkwGowEQYJYIZIAYb4QgEB
BAQDAgIEMCgGCWCGSAGG+EIBDQQbFhlleGFtcGxlIGNvbW1lbnQgZXh0ZW5zaW9u
MA0GCSqGSIb3DQEBBAUAA4GBAJ1qizzkkdFYlz3ue6/2DZ2HK0Yk/YKWQ8Dyhki5
3ch+Fky6DnqGM5ikQEQRTmgFVyJbLm5dbm3xdGo0oORiaHjorTxWhLrQSPrHHsm6
MnhVRnZbVJljF88ZxtQmFK5iyXVNOv19oIfmb1AbQ0b68JkGBdtBIgPdoS3XsUAH
fEq1
- -----END CERTIFICATE-----
</key>
</digitalAssetContract>
-----BEGIN CONTRACT SIGNATURE-----
Version: Open Transactions 0.88.e
Comment: http://github.com/FellowTraveler/Open-Transactions/wiki
CoABZbjYoPTCgsCXb0I0vck6f0Pqh5ud7IAse59XuYhkU5kOV8zjGnAN9tjUeFli
kk7PBPlHzLZpubzf63YB7H9Lbu7NniIyH3vLHzTSRmogbxSAst/SwLO5maTfsWUJ
rRwwzn96+07ovl4h7fPkyoQWhNnsl/o6rDXvuUakPAPPRdY=
-----END CONTRACT SIGNATURE-----
adam@B093075:~$ opentxs issueasset
Welcome to Open Transactions -- version 0.88.e
Contract FAILED to verify.
Using as server: gI301UJlZvagV64BilwmR4UBpBJl9Junwd5sqF9dPfH
Using as mynym: tQXYgNCvAlCR7WsMXMlMEeoyYAJypKZgZ2cFgXVaG1D
Usage: opentxs issueasset --server SERVER_ID --mynym NYM_ID
(NYM_ID must already be the 'contract' key on the new contract.)
See 'opentxs newasset' before running this script.
Please paste a currency contract, followed by an EOF or a ~ by itself on a blank line:
-------------------------------------------
New Contract ID: habd8gMGFCRuN4qKIa5n9yzsLiDVnIe0HOdHfWUSBBi
-------------------------------------------
New Contract:
-----BEGIN SIGNED CONTRACT-----
Hash: SAMY
<?xml version="1.0"?>
<digitalAssetContract version="1.0">
<entity shortname="digiBTC"
longname="Digital Bitcoin Tokens"
email="[email protected] or [email protected]"/>
<issue company="Vancouver Bitcoin"
email="[email protected] or [email protected]"
contractUrl="vanbtc.ca/ot/contracts/digiBTC"
type="currency"/>
<currency name="digiBTC" tla="dBTC" symbol="dBTC"
type="decimal" factor="1" decimal_power="0" fraction=""/>
<!-- CONDITIONS -->
<condition name="backing">
Digital Bitcoin Tokens are backed by actual bitcoin, held in reserve by Vancouver Bitcoin
at 14Ch4z1asqNYvisoKzY4NTTXL3PTHHxKhn on the bitcoin blockchain.
</condition>
<condition name="audit">
Vancouver Bitcoin's reserves can be audited, at anytime, by viewing 14Ch4z1asqNYvisoKzY4NTTXL3PTHHxKhn
on the bitcoin blockchain.
</condition>
<condition name="purchase">
Digital Bitcoin Tokens can be purchased with bitcoin, or any other asset—for an agreed upon exchange
rate—at vanbtc.ca/ot/purchase. Any assets exchanged for Digital Bitcoin Tokens, such as cash, will be
exchanged for bitcoin then transferred into Vancouver Bitcoin's minting account at
14Ch4z1asqNYvisoKzY4NTTXL3PTHHxKhn on the bitcoin blockchain, before, Digital Bitcoin Tokens will be
minted and issued to the purchaser. This guarantees 100% reserves in the minting account.
</condition>
<condition name="redemption">
Digital Bitcoin Tokens can be redeemed at vanbtc.ca/redeem.
</condition>
<condition name="rate">
Issuance and redemption will be performed for a .25-0.000000ee by Vancouver Bitcoin, this fee pays for
administration and server expenses etc.
</condition>
<condition name="buyback">
The Issuer reserves the right to buy back all outstanding currency, thereby terminating the use of this
instrument.
</condition>
<condition name="liability">
Vancouver Bitcoin is in no way liable for the Digital Bitcoin Tokens that it mints and issues; however,
Vancouver Bitcoin will buy back any Digital Bitcoin Tokens it has issued, and for which it has the
equivalent amount of bitcoin is held in reserve at 14Ch4z1asqNYvisoKzY4NTTXL3PTHHxKhn on the bitcoin
blockchain.
</condition>
<condition name="mint">
The total quantity of Digital Bitcoin Tokens, minted by Vancouver Bitcoin, will be the
exact amount of bitcoin held in Vancouver Bitcoin's reserve account
at 14Ch4z1asqNYvisoKzY4NTTXL3PTHHxKhn on the bitcoin blockchain. Vancouver Bitcoin mints
Digital Bitcoin Tokens from actual bitcoin—JUST LIKE GOLD MINTS MINT GOLD COINS OUT OF ACTUAL GOLD.
</condition>
<condition name="privacy">
The purchase and exchange of Digital Bitcoin Tokens are conducted on the basis of strong privacy.
</condition>
<!-- KEYS -->
<key name="contract">
- -----BEGIN CERTIFICATE-----
MIICPzCCAaigAwIBAgIBADANBgkqhkiG9w0BAQQFADAlMQswCQYDVQQGEwJVSzEW
MBQGA1UEAxMNT3BlblNTTCBHcm91cDAeFw0xMzAxMDMyMzIwMjRaFw0yMzAxMDEy
MzIwMjRaMCUxCzAJBgNVBAYTAlVLMRYwFAYDVQQDEw1PcGVuU1NMIEdyb3VwMIGf
MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC/rXKpaCFSpYqX3E3uz48sMSzAvwnw
Ua9NWgPe0E3kBZyDDbQXLUASqxh8rYc8Li4XDZXmPMkTJf6thX41OvA/aIwOr00u
6CE4kBPoyYAvOItCpGGVL0nUc5E95pgQYjHipdpcTN19Ti1k9IwHR7rl1vrluwZK
Z0/8ldD6LndkWwIDAQABo38wfTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQE
AwIBBjAdBgNVHQ4EFgQUx+bPecCXidot0BPat6fWRGdkwGowEQYJYIZIAYb4QgEB
BAQDAgIEMCgGCWCGSAGG+EIBDQQbFhlleGFtcGxlIGNvbW1lbnQgZXh0ZW5zaW9u
MA0GCSqGSIb3DQEBBAUAA4GBAJ1qizzkkdFYlz3ue6/2DZ2HK0Yk/YKWQ8Dyhki5
3ch+Fky6DnqGM5ikQEQRTmgFVyJbLm5dbm3xdGo0oORiaHjorTxWhLrQSPrHHsm6
MnhVRnZbVJljF88ZxtQmFK5iyXVNOv19oIfmb1AbQ0b68JkGBdtBIgPdoS3XsUAH
fEq1
- -----END CERTIFICATE-----
</key>
</digitalAssetContract>
-----BEGIN CONTRACT SIGNATURE-----
Version: Open Transactions 0.88.e
Comment: http://github.com/FellowTraveler/Open-Transactions/wiki
CoABZbjYoPTCgsCXb0I0vck6f0Pqh5ud7IAse59XuYhkU5kOV8zjGnAN9tjUeFli
kk7PBPlHzLZpubzf63YB7H9Lbu7NniIyH3vLHzTSRmogbxSAst/SwLO5maTfsWUJ
rRwwzn96+07ovl4h7fPkyoQWhNnsl/o6rDXvuUakPAPPRdY=
-----END CONTRACT SIGNATURE-----
~
=====>BEGIN Sending issueAssetType message via ZMQ... Request number: 102
=====>BEGIN Sending getRequest message via ZMQ... Request number: 1
Received new request number from the server: 103. Updating Nym records...
=====>BEGIN Sending issueAssetType message via ZMQ... Request number: 103
=====>BEGIN Sending getRequest message via ZMQ... Request number: 1
Received new request number from the server: 104. Updating Nym records...
Error in issue_asset! nStatus is: -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment