Not able to run transaction

I am tryign to follow this tutorial on Medium:How to Create NFTs Like NBA Top Shot With Flow and IPFS | by Justin Hunter | Pinata | Medium

When I generate the private keys and add it to flow.json and then try to run the transaction I get an error:
:x: Config Error: invalid project configuration: input has incorrect ECDSA_P256 key size

My flow.json is as below:

{
	"emulators": {
		"default": {
			"port": 3569,
			"serviceAccount": "emulator-account"
		}
	},
	"contracts": {"AFTContract": "./cadence/contracts/AFTContract.cdc"},
	"networks": {
		"emulator": {
			"host": "127.0.0.1:3569",
			"chain": "flow-emulator"
		},
		"mainnet": {
			"host": "access.mainnet.nodes.onflow.org:9000",
			"chain": "flow-mainnet"
		},
		"testnet": {
			"host": "access.devnet.nodes.onflow.org:9000",
			"chain": "flow-testnet"
		}
	},
	"accounts": {
		"emulator-account": {
			"address": "f8d6e0586b0a20c7",
			"privateKey": "1531c101b69c4c6d37124cea949b627d051b8f0bb66117a71c834e4bd5e29a63",
			"sigAlgorithm": "ECDSA_P256",
     		"hashAlgorithm": "SHA3_256",
			 "chain": "flow-emulator"
		}
	},
	"deployments": {
		"emulator": {
		"emulator-account": ["AFTContract"]
   }}
}

What am i doing worng?

1 Like

I had removed the “Keys” entry for flow.json. Working when I put that back in.

1 Like

I have the same issue. Did you manage to solve it?

EDIT:
Never mind! I just realized I had pasted the public keys, instead of the private ones in flow.json. Works now.