Skip to content

Commit

Permalink
tests: fix identity id tests with DPP 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HashEngineering committed Jul 1, 2024
1 parent 30df51f commit 342e17b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public void testIdentityAssetLockTransactionUniqueId() {
AssetLockTransaction fundingTransaction = new AssetLockTransaction(PARAMS, transactionData);

String lockedOutpoint = fundingTransaction.getLockedOutpoint().toStringBase64();
assertEquals("Locked outpoint is incorrect", "nQxmWXkiwGZ6VzBk72ukhBKuTZH/AZgfx8pAvPbVbPIAAAAA", lockedOutpoint);
assertEquals("Locked outpoint is incorrect", "8mzV9rxAyscfmAH/kU2uEoSka+9kMFd6ZsAieVlmDJ0AAAAA", lockedOutpoint);
String identityIdentifier = fundingTransaction.getIdentityId().toStringBase58();
assertEquals("Identity Identifier is incorrect", "451RMdWKovJWbfx5Q84oihL3n2J1N4p5E8SxCarT1ijF", identityIdentifier);
assertEquals("Identity Identifier is incorrect", "JEHdJRNQEcDeKDjNSNhYKp7zzL7dQmcAJxuoDEbHRjCH", identityIdentifier);

ECKey privateKey = ECKey.fromPrivate(Utils.HEX.decode("8cfb151eceb7540e42da177cfbe3a1580e97edf96a699e40d100cea669abb002"),true);
assertArrayEquals("The private key doesn't match the funding transaction", privateKey.getPubKeyHash(), fundingTransaction.getAssetLockPublicKeyId().getBytes());
Expand Down

0 comments on commit 342e17b

Please sign in to comment.