Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Secp256k1 pubkey length (compressed): 0 #211

Closed
kristovatlas opened this issue Apr 18, 2024 · 2 comments
Closed

Invalid Secp256k1 pubkey length (compressed): 0 #211

kristovatlas opened this issue Apr 18, 2024 · 2 comments

Comments

@kristovatlas
Copy link

When trying to create a multisig address using https://multisig.confio.run/saga/create :

I get this error message:
Invalid Secp256k1 pubkey length (compressed): 0

Additional browser console output:

Access to fetch at 'https://rpc-saga.keplr.app/' from origin 'https://multisig.confio.run' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
rpc-saga.keplr.app/:1 
        
        
       Failed to load resource: net::ERR_FAILED
create:1 Access to fetch at 'https://saga-mainnet-rpc.autostake.com/' from origin 'https://multisig.confio.run' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
saga-mainnet-rpc.autostake.com/:1 
        
        
       Failed to load resource: net::ERR_FAILED
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Object
create-e00a699a23c81075.js:1 Failed to create multisig: Error: Invalid Secp256k1 pubkey length (compressed): 0
    at ep (_app-fab72fd75982dedc.js:1:57844)
    at ey (_app-fab72fd75982dedc.js:1:58045)
    at _app-fab72fd75982dedc.js:1:67945
    at Array.sort (<anonymous>)
    at ef (_app-fab72fd75982dedc.js:1:67898)
    at s (28-bed7607b75d4c8fc.js:1:11032)
    at P (create-e00a699a23c81075.js:1:6523)
    at Object.eU (framework-5866cead997b9ace.js:9:14910)
    at eH (framework-5866cead997b9ace.js:9:15064)
    at framework-5866cead997b9ace.js:9:33370
P @ create-e00a699a23c81075.js:1
create-e00a699a23c81075.js:1 Object

Both addresses I'm adding to the 2-of-2 multisig were generated using Keplr wallet. Browser is Brave (Chromium-based) for MacOS.

@webmaster128
Copy link
Member

webmaster128 commented Apr 18, 2024

Thank you for the report. The issue is most likely caused by the pubkey not being on the chain (and the error handling failing). Could you try using the My Account page (top right) to see the public keys and construct the multisig with pubkeys instead of addresses?

@abefernan
Copy link
Contributor

Improved the multisig creation in #213 and the multisig error handling in #214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants