Giter Site home page Giter Site logo

Comments (7)

KesleyDavid avatar KesleyDavid commented on June 11, 2024 2

@10thfloor,

After doing several tests and readings, I finally discovered the problem in my situation.

Currently cli flow is in version 0.21.0 and my installed version was different.

Make the test by updating your cli again:
https://docs.onflow.org/flow-cli/install

from kitty-items.

sideninja avatar sideninja commented on June 11, 2024

Thank you for reporting this, we will make sure to update the docs.

CLI already supports SHA2_256 and you can configure it as it is described here: https://docs.onflow.org/flow-cli/configuration/#advanced-format-1

So if you want to have it configured you can do so but you must manually change flow.json configuration file.

from kitty-items.

10thfloor avatar 10thfloor commented on June 11, 2024

@sideninja So, is the default: ECDSA_P256 + SHA3_256 for keys, and anything else requires customization (using "advanced format") for keys entries in flow.json ?

Also, when using "advanced format" do you have to specify all properties, or can you omit defaults?
For example, is this a valid "advanced format" entry:

...

 {
    "hashAlgorithm": "SHA2_256",
    "context": {
          "privateKey": "333332967...etc"
    }
},

...

from kitty-items.

sideninja avatar sideninja commented on June 11, 2024

@sideninja So, is the default: ECDSA_P256 + SHA3_256 for keys, and anything else requires customization (using "advanced format") for keys entries in flow.json ?

Also, when using "advanced format" do you have to specify all properties, or can you omit defaults?
For example, is this a valid "advanced format" entry:

...

 {
    "hashAlgorithm": "SHA2_256",
    "context": {
          "privateKey": "333332967...etc"
    }
},

...

Yes, that is the default.

You have to specify all the properties although specifying just the ones that are not the default might work although not tested for this usecase.

from kitty-items.

KesleyDavid avatar KesleyDavid commented on June 11, 2024

Good morning everybody.

For me I still have the same error when deploying to testnet.

"testnet-account": {
      "address": "${FLOW_ADDRESS}",
      "keys": [
            {
                  "type": "hex",
                  "index": 0,
                  "signatureAlgorithm": "ECDSA_P256",
                  "hashAlgorithm": "SHA3_256",
                  "context": {
                        "privateKey": "${FLOW_PRIVATE_KEY}"
                   }
            }
      ]
}

I also did the test using SHA2_256

I created the user by cli, and activated through the link: https://testnet-faucet-v2.onflow.org/

from kitty-items.

sideninja avatar sideninja commented on June 11, 2024

@KesleyDavid new CLI version will warn you about the updates so you don't have a similar problem in the future.

Can we close this?

from kitty-items.

cybercent avatar cybercent commented on June 11, 2024

@sideninja yes, can be closed

from kitty-items.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.