blockchain , sdchain cpp sdk and demo
Dependencies: EthernetInterface mbed-rtos mbed uniqueCPUID
Fork of bcsdk by
Diff: demo/Key_test.cpp
- Revision:
- 18:ec6cd7cfe3f8
- Parent:
- 17:58847aecad54
diff -r 58847aecad54 -r ec6cd7cfe3f8 demo/Key_test.cpp --- a/demo/Key_test.cpp Wed Aug 08 09:48:46 2018 +0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -/* -加密私钥是区块链上的主要授权机制。 -他们控制资产单位的发行和转让。 资产或帐户将定义发行或转移所需的单个密钥。 - -创建HSM密钥 -1 -键入密钥别名的名称(例如'gold','silver','bronze') - -密钥别名是用于区分密钥的标签。 -*/ -#include "mbed.h" -#include "EthernetInterface.h" -//#include "SDFileSystem.h" -#include <stdio.h> -#include "uniqueCPUID.h" - -#include <iostream> -#include <string> -#include "UnitTest.h" -//#include "BlockChain.h" -#include "MockHsm.h" -#include "Asset.h" -#include "Transaction.h" -#include "Account.h" -#include "Key.h" - - -void Key_test() -{ - MockHsm mh; - mh.setAlias("t_key_6"); - cout<<mh.getAlias()<<endl; - cout<<mh.createKey()<<endl; - cout<< mh.listKeys() <<endl; -} \ No newline at end of file