Skip to content

Instantly share code, notes, and snippets.

View xeroc's full-sized avatar
🏠
building

Fabian Schuh xeroc

🏠
building
View GitHub Profile
from pprint import pprint
from peerplays import PeerPlays
from peerplaysbase.account import PrivateKey, Address, PublicKey
import hashlib
from binascii import hexlify, unhexlify
ppy = PeerPlays("wss://node.peerplays.download")
pubkey = PublicKey("04e745a55c9ca90b1d022627f04fb5b8dfcec3f708285b327320822e05cea6ec9be3dfd95eaa5365ed87727f8004c1d90f2be7056eec0fcd0ba91a934d1ddc4d7c")

bos-auto

  • Support for dynamic markets which come with their own triggers and allow later setting up of betting market groups according to a dynamic metric, such as handicap and overunder values.
  • Support for cancel events.
  • Improve API endpoint responses when taking incidents from data proxy
  • Massive improvements in unit testing and coverage.
  • Fix leadtime_max so that events are created at a later point in time.
  • Improve code structure and documentation.
from peerplaysbase import operations
from peerplays import PeerPlays
from peerplays.account import Account
from peerplays.asset import Asset
from peerplaysbase import asset_permissions
from getpass import getpass
# The name of the issuer account
issuer = "nathan"
symbol = "BTC"
from pprint import pprint
from peerplays import PeerPlays
from peerplaysbase.account import PrivateKey, Address, PublicKey
import hashlib
from binascii import hexlify, unhexlify
ppy = PeerPlays("wss://node.peerplays.download")
pubkey = PublicKey("04e745a55c9ca90b1d022627f04fb5b8dfcec3f708285b327320822e05cea6ec9be3dfd95eaa5365ed87727f8004c1d90f2be7056eec0fcd0ba91a934d1ddc4d7c")
from pprint import pprint
from peerplays import PeerPlays
from peerplaysbase.account import PrivateKey, Address
import hashlib
from binascii import hexlify, unhexlify
ppy = PeerPlays("wss://node.peerplays.download")
soll_address = "PPYEnWS9v8NrzuJGsrDpXUGAhNPArBweR8je"

In other cryptocurrencies like bitcoin and ethereum, there is an "address" which is hex-string. How are accounts different?

An account can be seen as a registered name that only you own. This this accomplished by linking your cryptographic secret (private/public key pair) with your account, publicly. By this, only those entities that have access to the correct private keys can access a particular accounts. This comes with another advantages and that is, accounts can be setup to grant access not just to one key, but to many and allows sophisticated multi-signature setups for every account. Even accounts can be allowed to have access to other accounts. That said,

@xeroc
xeroc / CLA.md
Last active June 27, 2018 07:54

Fiduciary License Agreement 2.0

based on the

Individual Contributor exclusive License Agreement

(including the Traditional Patent License OPTION)

from peerplays import PeerPlays
from peerplays.account import Account
from peerplaysbase.operations import Account_update
from pprint import pprint
from getpass import getpass
pwd = getpass()
ppy = PeerPlays(nobroadcast=True)
ppy.wallet.unlock(pwd)
from pprint import pprint
from datetime import datetime
from elasticsearch import Elasticsearch
from elasticsearch_dsl import Search
from bitshares.account import Account
from bitshares.blockchainobject import BlockchainObject
from bitshares.instance import shared_bitshares_instance
class ES:
from datetime import datetime
from elasticsearch import Elasticsearch
from elasticsearch_dsl import Search
from bitshares.account import Account
ip = "176.9.44.67"
account = Account("xeroc")
account_id = account["id"]
es = Elasticsearch(ip, timeout=60)