Optimizations

This commit is contained in:
2022-04-22 18:11:33 +02:00
parent e779d8d5dc
commit 19347800c8
5 changed files with 39 additions and 23 deletions

17
monoblock_test.go Normal file
View File

@@ -0,0 +1,17 @@
package main
import (
"fmt"
"monoblock/chain"
"monoblock/keymgmt"
"testing"
)
func TestGenerateAddress(t *testing.T) {
addr1 := keymgmt.GenerateAddress()
addr2 := keymgmt.GenerateAddress()
ta1 := chain.NewTransaction(addr1.GetAddress(), addr2.GetAddress(), 100)
fmt.Printf("%x\n", ta1.ToBytes())
fmt.Printf("%x\n", ta1.ToBytesSerialize())
}