forked from skycoin/pyskycoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libpy][test] refs skycoin#68 rename syntax 93 passed in 63.59 seconds
- Loading branch information
Showing
10 changed files
with
919 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
import base58 | ||
import secp256k1go | ||
import encrypt | ||
import scrypt | ||
import scrypt | ||
import secp256k1 | ||
import coin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
from .libpy import * | ||
|
||
def CreateTransactions(): | ||
return skycoin.SKY_coin_Create_Transactions() | ||
|
||
def TransactionsAdd(txns, txn): | ||
return skycoin.SKY_coin_Transactions_Add(txns, txn) | ||
|
||
def NewEmptyBlock(transactions): | ||
return skycoin.SKY_coin_NewEmptyBlock(transactions) | ||
|
||
def GetBlockObject(block): | ||
return skycoin.SKY_coin_GetBlockObject(block) | ||
|
||
def GetBlockBody(block): | ||
return skycoin.SKY_coin_GetBlockBody(block) | ||
|
||
def BlockBodyHash(body, bodyhash): | ||
return skycoin.SKY_coin_BlockBody_Hash(body, bodyhash) | ||
|
||
def NewBlock( p0, p1, p2, p3, p4): | ||
return skycoin.SKY_coin_NewBlock( p0, p1, p2, p3, p4) | ||
|
||
def BlockHashHeader(block, hash1): | ||
return skycoin.SKY_coin_Block_HashHeader(block, hash1) | ||
|
||
def BlockHeaderHash(Head, hash2): | ||
return skycoin.SKY_coin_BlockHeader_Hash(Head, hash2) | ||
|
||
def BlockHashBody(block, hash1): | ||
return skycoin.SKY_coin_Block_HashBody(block, hash1) | ||
|
||
def NewGenesisBlock(address, genCoins, genTime): | ||
return skycoin.SKY_coin_NewGenesisBlock(address, genCoins, genTime) | ||
|
||
def BlockHeaderBytes(head): | ||
return skycoin.SKY_coin_BlockHeader_Bytes(head) | ||
|
||
def TransactionPushOutput(handle, address, p0, p1): | ||
return skycoin.SKY_coin_Transaction_PushOutput(handle, address, p0, p1) | ||
|
||
def UxOut(): | ||
return skycoin.coin__UxOut() | ||
|
||
def BlockHeader(): | ||
return skycoin.coin__BlockHeader() | ||
|
||
def CreateUnspent(bh, handle, index, ux): | ||
return skycoin.SKY_coin_CreateUnspent(bh, handle, index, ux) | ||
|
||
def CreateUnspents(bh, txn): | ||
return skycoin.SKY_coin_CreateUnspents(bh, txn) | ||
|
||
def TransactionsGetAt(handle, p1): | ||
return skycoin.SKY_coin_Transactions_GetAt(handle, p1) | ||
|
||
def GetTransactionObject(tx1): | ||
return skycoin.SKY_coin_GetTransactionObject(tx1) | ||
|
||
def CreateTransaction(): | ||
return skycoin.SKY_coin_Create_Transaction() | ||
|
||
def UxOutHash(ux, h): | ||
return skycoin.SKY_coin_UxOut_Hash(ux, h) | ||
|
||
def TransactionPushInput(handle, h): | ||
return skycoin.SKY_coin_Transaction_PushInput(handle, h) | ||
|
||
def TransactionSignInputs(handle, secKeys): | ||
return skycoin.SKY_coin_Transaction_SignInputs(handle, secKeys) | ||
|
||
def TransactionUpdateHeader(handle): | ||
return skycoin.SKY_coin_Transaction_UpdateHeader(handle) | ||
|
||
def UxBody(): | ||
return skycoin.coin__UxBody() | ||
|
||
def UxHead(): | ||
return skycoin.coin__UxHead() | ||
|
||
def Transaction(): | ||
return skycoin.coin__Transaction() | ||
|
||
def TransactionsLength(handle): | ||
return skycoin.SKY_coin_Transactions_Length(handle) | ||
|
||
def TransactionCopy(handle): | ||
return skycoin.SKY_coin_Transaction_Copy(handle) | ||
|
||
def TransactionVerify(handle2): | ||
return skycoin.coin_Transaction_Verify(handle2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
from .libpy import * | ||
|
||
def UncompressedPubkeyFromSeckey(privkey): | ||
return skycoin.SKY_secp256k1_UncompressedPubkeyFromSeckey(privkey) | ||
|
||
def GenerateKeyPair(): | ||
return skycoin.SKY_secp256k1_GenerateKeyPair() | ||
|
||
def Sign(msg, seckey): | ||
return skycoin.SKY_secp256k1_Sign(msg, seckey) | ||
|
||
def VerifyPubkey(pub_key): | ||
return skycoin.SKY_secp256k1_VerifyPubkey(pub_key) | ||
|
||
def RecoverPubkey(msg, sig): | ||
return skycoin.SKY_secp256k1_RecoverPubkey(msg, sig) | ||
|
||
def VerifySeckey(sec_key): | ||
return skycoin.SKY_secp256k1_VerifySeckey(sec_key) | ||
|
||
def VerifySignature(hashs, sig, pub_key): | ||
return skycoin.SKY_secp256k1_VerifySignature(hashs, sig, pub_key) | ||
|
||
def RandByte(num): | ||
return skycoin.SKY_secp256k1_RandByte(num) | ||
|
||
def DeterministicKeyPairIterator(seed): | ||
return skycoin.SKY_secp256k1_DeterministicKeyPairIterator(seed) | ||
|
||
def GenerateDeterministicKeyPair(seed): | ||
return skycoin.SKY_secp256k1_GenerateDeterministicKeyPair(seed) | ||
|
||
def Secp256k1Hash(_hash): | ||
return skycoin.SKY_secp256k1_Secp256k1Hash(_hash) | ||
|
||
def ECDH(pub_key, sec_key): | ||
return skycoin.SKY_secp256k1_ECDH(pub_key, sec_key) | ||
|
||
def PubkeyFromSeckey(sec_key): | ||
return skycoin.SKY_secp256k1_PubkeyFromSeckey(sec_key) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.