mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 04:04:21 +01:00
Vars and fields renaming (#387)
* Rename asp > server * Rename pool > round * Consolidate naming for pubkey/prvkey vars and types * Fix * Fix * Fix wasm * Rename congestionTree > vtxoTree * Fix wasm * Rename payment > request * Rename congestionTree > vtxoTree after syncing with master * Fix Send API in SDK * Fix wasm * Fix wasm * Fixes * Fixes after review * Fix * Fix naming * Fix * Fix e2e tests
This commit is contained in:
committed by
GitHub
parent
12d666bfdf
commit
7f937e8418
@@ -25,9 +25,9 @@ func TestAddressEncoding(t *testing.T) {
|
||||
fixtures := struct {
|
||||
Address struct {
|
||||
Valid []struct {
|
||||
Addr string `json:"addr"`
|
||||
ExpectedUserKey string `json:"expectedUserKey"`
|
||||
ExpectedAspKey string `json:"expectedAspKey"`
|
||||
Addr string `json:"addr"`
|
||||
ExpectedUserKey string `json:"expectedUserKey"`
|
||||
ExpectedServerKey string `json:"expectedServerKey"`
|
||||
} `json:"valid"`
|
||||
Invalid []struct {
|
||||
Addr string `json:"addr"`
|
||||
@@ -43,14 +43,14 @@ func TestAddressEncoding(t *testing.T) {
|
||||
addr, err := common.DecodeAddress(f.Addr)
|
||||
require.NoError(t, err)
|
||||
require.NotEmpty(t, addr.HRP)
|
||||
require.NotNil(t, addr.Asp)
|
||||
require.NotNil(t, addr.Server)
|
||||
require.NotNil(t, addr.VtxoTapKey)
|
||||
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, f.ExpectedUserKey, hex.EncodeToString(addr.VtxoTapKey.SerializeCompressed()))
|
||||
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, f.ExpectedAspKey, hex.EncodeToString(addr.Asp.SerializeCompressed()))
|
||||
require.Equal(t, f.ExpectedServerKey, hex.EncodeToString(addr.Server.SerializeCompressed()))
|
||||
|
||||
encoded, err := addr.Encode()
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user