Skip to content

Commit

Permalink
Save erpPubKeys as compressed in ErpFederation
Browse files Browse the repository at this point in the history
  • Loading branch information
julia-zack authored and marcos-iov committed Jan 31, 2024
1 parent ebdfe7f commit 376b627
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import co.rsk.bitcoinj.script.ScriptChunk;
import co.rsk.peg.bitcoin.ErpRedeemScriptBuilder;
import co.rsk.peg.bitcoin.RedeemScriptCreationException;
import co.rsk.peg.utils.EcKeyUtils;

import java.util.Collections;
import java.util.List;

Expand All @@ -29,10 +31,9 @@ protected ErpFederation(
int formatVersion
) {
super(federationArgs, formatVersion);

validateEmergencyKeys(erpPubKeys);

this.erpPubKeys = erpPubKeys;
this.erpPubKeys = EcKeyUtils.getCompressedPubKeysList(erpPubKeys);
this.activationDelay = activationDelay;
this.erpRedeemScriptBuilder = erpRedeemScriptBuilder;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import co.rsk.peg.bitcoin.NonStandardErpRedeemScriptBuilderFactory;
import co.rsk.peg.bitcoin.P2shErpRedeemScriptBuilder;
import org.ethereum.config.blockchain.upgrades.ActivationConfig;

import java.util.List;

import static co.rsk.peg.federation.FederationFormatVersion.*;
Expand Down

0 comments on commit 376b627

Please sign in to comment.