address: move into its own package

Doesn't really belong to the crypto.
This commit is contained in:
Roman Khimov 2019-12-25 15:22:02 +03:00
parent a025b9c42d
commit e685e9bf9a
15 changed files with 48 additions and 50 deletions

View file

@ -4,7 +4,7 @@ import (
"testing"
"github.com/CityOfZion/neo-go/config"
"github.com/CityOfZion/neo-go/pkg/crypto"
"github.com/CityOfZion/neo-go/pkg/encoding/address"
"github.com/stretchr/testify/assert"
)
@ -45,7 +45,7 @@ func TestGetConsensusAddressMainNet(t *testing.T) {
}
assert.Equal(t, consensusScript, script.String())
assert.Equal(t, consensusAddr, crypto.AddressFromUint160(script))
assert.Equal(t, consensusAddr, address.EncodeUint160(script))
}
func TestUtilityTokenTX(t *testing.T) {