|
hdac SDK
SDK for hdac blockchain development
|
hs_keys_wrapper 소스 파일. 더 자세히 ...
#include <iostream>#include <cstdint>#include <string>#include <vector>#include "hs_keys.h"#include "keyshelper.h"#include <utils/utilstrencodings.h>#include "hs_keys_wrapper.h"#include <string.h>클래스 | |
| struct | PrivateKeyHelperConstant |
| struct | WalletAddrHelperConstant |
함수 | |
| char * | create_stream_publish_tx (const char *streamKey, const char *streamItem, const char *createTxid, const char *unspentScriptPubKey, const char *unspentTxid, uint32_t unspentVOut, const char *unspentRedeemScript, const char *privateKey, struct PrivateKeyHelpInfo *helper) |
| createStreamPublishTx 함수를 c에서 사용하기 위해 wrapping 한 함수. 더 자세히 ... | |
| keypairs_type_t * | create_key_pairs (const struct PrivateKeyHelpInfo *privatehelper, const struct WalletAddrHelpInfo *addrhelper) |
| createKeyPairs 함수를 c에서 사용하기 위해 wrapping 한 함수. 더 자세히 ... | |
| char * | create_asset_send_tx (const char *toAddr, double quantity, const char *issueTxid, int multiple, const char *unspentScriptPubKey, const char *unspentTxid, uint32_t unspentVout, double unspentQty, const char *unspentRedeemScript, const char *privateKey, struct PrivateKeyHelpInfo *privatehelper, struct WalletAddrHelpInfo *addrhelper) |
| createAssetSendTx 함수를 c에서 사용 하기 위해 wrapping 한 함수 개인키 처리를 위한 정보 제공 인터페이스를 가져오는 createAssetSendTx 함수를 c에섯 사용 하기 위해 wrapping 한 함수. 더 자세히 ... | |
| char * | sign_message (const char *strAddress, const char *strMessage, struct PrivateKeyHelpInfo *privatehelper, struct WalletAddrHelpInfo *addrhelper) |
| SignMessage 함수를 c에서 사용 하기 위해 wrapping 한 함수. 더 자세히 ... | |
| int | verify_message (const char *strAddress, const char *strSign, const char *strMessage, struct WalletAddrHelpInfo *addrhelper) |
| VerifyMessage 함수를 c에서 사용 하기 위해 wrapping 한 함수. 더 자세히 ... | |
hs_keys_wrapper 소스 파일.
| char* create_asset_send_tx | ( | const char * | toAddr, |
| double | quantity, | ||
| const char * | issueTxid, | ||
| int | multiple, | ||
| const char * | unspentScriptPubKey, | ||
| const char * | unspentTxid, | ||
| uint32_t | unspentVout, | ||
| double | unspentQty, | ||
| const char * | unspentRedeemScript, | ||
| const char * | privateKey, | ||
| struct PrivateKeyHelpInfo * | privatehelper, | ||
| struct WalletAddrHelpInfo * | addrhelper | ||
| ) |
createAssetSendTx 함수를 c에서 사용 하기 위해 wrapping 한 함수 개인키 처리를 위한 정보 제공 인터페이스를 가져오는 createAssetSendTx 함수를 c에섯 사용 하기 위해 wrapping 한 함수.
createAssetSendTx 함수를 c에서 사용 하기 위해 wrapping 한 함수.
| toAddr | 보낼 지갑 주소 |
| quantity | 보낼 자산량 |
| issueTxid | 발행한 트랜잭션 ID |
| multiple | 자산에 대한 multiple 값 |
| unspentScriptPubKey | UTXO에 대한 scriptPubKey |
| unspentTxid | UTXO에 대한 트랜잭션 ID |
| unspentVOut | UTXO의 인덱스 |
| unspentQty | UTXO의 양 |
| unspentRedeemScript | UTXO의 redeem script (muti-sig 용으로 주로 사용) |
| privateKey | 보내는 지갑에 대한 개인키 |
| privatehelper | 개인키 처리를 위한 정보 제공 인터페이스 |
| addrhelper | 지갑주소 처리를 위한 정보 제공 인터페이스 |
| keypairs_type_t* create_key_pairs | ( | const struct PrivateKeyHelpInfo * | privatehelper, |
| const struct WalletAddrHelpInfo * | addrhelper | ||
| ) |
createKeyPairs 함수를 c에서 사용하기 위해 wrapping 한 함수.
createKeyPairs 함수를 c에서 사용 하기 위해 wrapping 한 함수.
개인키를 생성하는 createKeyPairs 함수를 c에서 사용 하기 위해 wrapping 한 함수.
| privatehelper | 개인키 처리를 위한 정보 제공 인터페이스 |
| addrhelper | 지갑주소 처리를 위한 정보 제공 인터페이스 |
| char* create_stream_publish_tx | ( | const char * | streamKey, |
| const char * | streamItem, | ||
| const char * | createTxid, | ||
| const char * | unspentScriptPubKey, | ||
| const char * | unspentTxid, | ||
| uint32_t | unspentVOut, | ||
| const char * | unspentRedeemScript, | ||
| const char * | privateKey, | ||
| struct PrivateKeyHelpInfo * | helper | ||
| ) |
createStreamPublishTx 함수를 c에서 사용하기 위해 wrapping 한 함수.
createStreamPublishTx 함수를 c에서 사용 하기 위해 wrapping 한 함수.
스트림키 발행을 위한 raw-tx 문자열을 생성하는 createStreamPublishTx 함수를 c에서 사용하기 위해 wrapping 함 함수.
| streamKey | 스트림에 대한 키 |
| streamItem | 키에 대한 값 |
| createTxid | 스트림 생성 트랜잭션 ID |
| unspentScriptPubKey | UTXO에 대한 scriptPubKey |
| unspentTxid | UTXO에 대한 트랜잭션 ID |
| unspentVOut | UTXO의 인덱스 |
| unspentRedeemScript | UTXO의 redeem script (muti-sig 용으로 주로 사용) |
| privateKey | 보내는 지갑에 대한 개인키 |
| helper | 개인키 처리를 위한 정보 제공 인터페이스 |
| char* sign_message | ( | const char * | strAddress, |
| const char * | strMessage, | ||
| struct PrivateKeyHelpInfo * | privatehelper, | ||
| struct WalletAddrHelpInfo * | addrhelper | ||
| ) |
SignMessage 함수를 c에서 사용 하기 위해 wrapping 한 함수.
SignMessage 함수를 c에서 사용하기 위해 wrapping 한 함수.
개인키를 이용하여 sign 된 메시지를 만드는 SignMessage 함수를 c에서 사용 하기 위해 wrapping 한 함수.
개인키를 이용하여 평문으로 된 메시지를 sign 하여 암호화 한다.
| strAddress | sign 할려고 하는 개인키 값 |
| strMessage | sign 할려고 하는 원본 문자열 |
| privateHelper | 개인키 처리를 위한 정보 제공 인터페이스 |
| addrHelper | 지갑주소 처리를 위한 정보 제공 인터페이스 |
| int verify_message | ( | const char * | strAddress, |
| const char * | strSign, | ||
| const char * | strMessage, | ||
| struct WalletAddrHelpInfo * | addrhelper | ||
| ) |
VerifyMessage 함수를 c에서 사용 하기 위해 wrapping 한 함수.
VerifyMessage 함수를 c에서 사용하기 위해 wrapping 한 함수.
개인키 또는 지갑주소로 sign 된 메시지를 검증 하는 VerifyMessage 함수를 c에서 사용 하기 위해 wrapping 한 함수.
| strAddress | sign 할 때 사용 된 지갑주소 |
| strSign | sign 되어진 문자열 |
| strMessage | 원본 문자열 |
| addrhelper | 지갑주소 처리를 위한 정보 제공 인터페이스 |
1.8.11