hdac SDK
SDK for hdac blockchain development
클래스 | 함수
hs_keys_wrapper.cpp 파일 참조

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_tcreate_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 소스 파일.

날짜
2019-01-25
작성자
HDAC Technology Inc.

함수 문서화

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 값
unspentScriptPubKeyUTXO에 대한 scriptPubKey
unspentTxidUTXO에 대한 트랜잭션 ID
unspentVOutUTXO의 인덱스
unspentQtyUTXO의 양
unspentRedeemScriptUTXO의 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지갑주소 처리를 위한 정보 제공 인터페이스
반환값
KeyPairs
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
unspentScriptPubKeyUTXO에 대한 scriptPubKey
unspentTxidUTXO에 대한 트랜잭션 ID
unspentVOutUTXO의 인덱스
unspentRedeemScriptUTXO의 redeem script (muti-sig 용으로 주로 사용)
privateKey보내는 지갑에 대한 개인키
helper개인키 처리를 위한 정보 제공 인터페이스
반환값
raw-tx 문자열
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 하여 암호화 한다.

매개변수
strAddresssign 할려고 하는 개인키 값
strMessagesign 할려고 하는 원본 문자열
privateHelper개인키 처리를 위한 정보 제공 인터페이스
addrHelper지갑주소 처리를 위한 정보 제공 인터페이스
반환값
base64 로 인코딩 된 sign 된 문자열
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 한 함수.

매개변수
strAddresssign 할 때 사용 된 지갑주소
strSignsign 되어진 문자열
strMessage원본 문자열
addrhelper지갑주소 처리를 위한 정보 제공 인터페이스
반환값
해당 개인키 또는 지갑주소로 sign 메시지가 맞다면 true 아니라면 false