Skip to content

Commit

Permalink
Aptos: encode the aptos key again
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Sep 17, 2024
1 parent 9f5b661 commit c9428e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/scripts/keystone/src/88_gen_ocr3_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,13 @@ func generateOCR3Config(nodeList string, configFile string, chainID int64, pubKe
allPubKeys := map[string]any{}
for _, n := range nca {
ethPubKey := common.HexToAddress(n.OCR2OnchainPublicKey)
aptosPubKey, err := hex.DecodeString(n.AptosOnchainPublicKey)
if err != nil {
panic(err)
}
pubKeys := map[string]types.OnchainPublicKey{
"evm": ethPubKey[:],
"evm": ethPubKey[:],
"aptos": aptosPubKey,
}
// validate uniqueness of each individual key
for _, key := range pubKeys {
Expand Down

0 comments on commit c9428e4

Please sign in to comment.