# Public key must be a hexadecimal string with no spaces

**URL:** <https://forum.flow.com/t/public-key-must-be-a-hexadecimal-string-with-no-spaces/1575>\
**Category:** Uncategorized\
**Created:** [March 26, 2021, 12:34pm UTC](https://forum.flow.com/t/public-key-must-be-a-hexadecimal-string-with-no-spaces/1575 "2021-03-26T12:34:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubovka](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dubovka](https://forum.flow.com/u/dubovka)\
**Post date:** [March 26, 2021, 12:34pm UTC](https://forum.flow.com/t/public-key-must-be-a-hexadecimal-string-with-no-spaces/1575/1 "2021-03-26T12:34:40Z")

</div>

Hello everyone. Can you help me? When i use

> flow keys generate

I get :

> Generating key pair with signature algorithm: ECDSA\_P256  
> �:closed\_lock\_with\_key: Private key (⚠ store safely and don’t share with anyone): 9a73d377f87774c97a29be35323ec7bb8232876d43cd4080776dac028aa2e982  
> 🕊 Encoded public key (share freely): a9191f401452d49190e4d25bb687ad83570 d8059799452772478995eb30cf215b060e6df6a5bd3071a84304365c780cafc0ef8a0  
> adc45f03760ba9a76d86499

But when i used this public key in [https://testnet-faucet-v2.onflow.org/](https://testnet-faucet-v2.onflow.org/)  
i get error “ **Public key must be a hexadecimal string with no spaces** ”  
What i must do?

---

<div class="post-metadata">

**Author:** ![dubovka](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dubovka](https://forum.flow.com/u/dubovka)\
**Post date:** [March 26, 2021, 1:54pm UTC](https://forum.flow.com/t/public-key-must-be-a-hexadecimal-string-with-no-spaces/1575/2 "2021-03-26T13:54:33Z")

</div>

**If i use Windows Power Shell**

> flow accounts create --key ‘MY PUBLIC KEY’  
> –sig-algo ECDSA\_secp256k1 --hash-algo SHA3\_256 --host [access.testnet.nodes.onflow.org:9000](http://access.testnet.nodes.onflow.org:9000) --results

**I GET RESULT :**

> ⚠ You are using a new experimental configuration format. Support for this format is not yet available across all CLI commands.  
> ⚠ You are using a new experimental configuration format. Support for this format is not yet available across all CLI commands.  
> [flow.json] contains invalid json: encoding/hex: invalid byte: U+0024 ‘$’

---

<div class="post-metadata">

**Author:** ![dubovka](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dubovka](https://forum.flow.com/u/dubovka)\
**Post date:** [March 26, 2021, 2:18pm UTC](https://forum.flow.com/t/public-key-must-be-a-hexadecimal-string-with-no-spaces/1575/3 "2021-03-26T14:18:13Z")

</div>

Thank you, I already figured out what the problem was, the problem is that at the very beginning of use I already created an account and all the keys were tied to it. Now I have a problem with deploying my contracts, can you suggest or show how I should deploy a contract and how to interact with it?

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [March 31, 2021, 12:55pm UTC](https://forum.flow.com/t/public-key-must-be-a-hexadecimal-string-with-no-spaces/1575/4 "2021-03-31T12:55:26Z")

</div>

The cli has documentation for how to deploy a contract: [Flow CLI - Flow Documentation](https://docs.onflow.org/flow-cli)
