-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Description
In previous issues you wrote a code example how to create wallet address
public class GenerateAddress {
public static void main(String[] args) {
Config.initBouncy();
SecureRandom random = new SecureRandom();
byte[] seedBytes = new byte[16];
random.nextBytes(seedBytes);
Seed seed = new Seed(seedBytes);
IKeyPair iKeyPair = seed.keyPair();
byte[] pub160Hash = iKeyPair.pub160Hash();
AccountID accountID = AccountID.fromBytes(pub160Hash);
System.out.println("secret= " + seed + ", address=" + accountID);
}
}
But address is not correct, can you write a new example?
Metadata
Metadata
Assignees
Labels
No labels