/
addresses.go
27 lines (22 loc) · 1.01 KB
/
addresses.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package testscommon
import (
"encoding/hex"
"github.com/ElrondNetwork/elrond-go-core/core/pubkeyConverter"
logger "github.com/ElrondNetwork/elrond-go-logger"
)
// RealWorldBech32PubkeyConverter is a bech32 converter, to be used in tests
var RealWorldBech32PubkeyConverter, _ = pubkeyConverter.NewBech32PubkeyConverter(32, logger.GetOrCreate("testscommon"))
var (
// TestAddressAlice is a test address
TestAddressAlice = "erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th"
// TestPubKeyAlice is a test pubkey
TestPubKeyAlice, _ = RealWorldBech32PubkeyConverter.Decode(TestAddressAlice)
// TestPubKeyHexAlice is a test pubkey
TestPubKeyHexAlice = hex.EncodeToString(TestPubKeyAlice)
// TestAddressBob is a test address
TestAddressBob = "erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx"
// TestPubKeyBob is a test pubkey
TestPubKeyBob, _ = RealWorldBech32PubkeyConverter.Decode(TestAddressBob)
// TestPubKeyHexBob is a test pubkey
TestPubKeyHexBob = hex.EncodeToString(TestPubKeyBob)
)