# How to create an account after running the localnet?

**URL:** <https://forum.flow.com/t/how-to-create-an-account-after-running-the-localnet/2125>\
**Category:** 🛠 Developer Tools\
**Created:** [June 24, 2021, 10:16pm UTC](https://forum.flow.com/t/how-to-create-an-account-after-running-the-localnet/2125 "2021-06-24T22:16:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![w\_s](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@w\_s](https://forum.flow.com/u/w_s)\
**Post date:** [June 24, 2021, 10:16pm UTC](https://forum.flow.com/t/how-to-create-an-account-after-running-the-localnet/2125/1 "2021-06-24T22:16:37Z")

</div>

I was able to get the localnet running in the same way as [this thread](http://forum.flow.com/t/bootstrapping-a-flow-go-integration-localnet/1615), and from the same thread I also spotted the service account private key. However, the key seems to be slightly different from what’s used in the Flow Go SDK examples, and they aren’t interchangeable. How do you use the given key in the Go SDK?

---

<div class="post-metadata">

**Author:** ![bluesign](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/bluesign/32/1359_2.png) [@bluesign](https://forum.flow.com/u/bluesign)\
**Post date:** [June 25, 2021, 5:56pm UTC](https://forum.flow.com/t/how-to-create-an-account-after-running-the-localnet/2125/2 "2021-06-25T17:56:10Z")

</div>

yeah it is using SHA2 instead of SHA3. But you should be able to use with Go SDK

---

<div class="post-metadata">

**Author:** ![w\_s](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@w\_s](https://forum.flow.com/u/w_s)\
**Post date:** [July 1, 2021, 7:53pm UTC](https://forum.flow.com/t/how-to-create-an-account-after-running-the-localnet/2125/3 "2021-07-01T19:53:56Z")

</div>

@bluesign could you go into more detail on how I can do that? The private key string from execution\_state.go is 72 characters long, while the ones from the Go SDK and made by the Flow CLI are 64 characters long. I cannot use the key from execution\_state.go in the Flow Emulator either, as both  
`flow emulator --service-priv-key e3a08ae3d0461cfed6d6f49bfc25fa899351c39d1bd21fdba8c87595b6c49bb4cc430201 --service-sig-algo=ECDSA_P256 --service-hash-algo=SHA3_256`  
and  
`flow emulator --service-priv-key e3a08ae3d0461cfed6d6f49bfc25fa899351c39d1bd21fdba8c87595b6c49bb4cc430201 --service-sig-algo=ECDSA_P256 --service-hash-algo=SHA2_256`  
say `input has incorrect ECDSA_P256 key size`.

---

<div class="post-metadata">

**Author:** ![bluesign](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/bluesign/32/1359_2.png) [@bluesign](https://forum.flow.com/u/bluesign)\
**Post date:** [July 2, 2021, 4:53pm UTC](https://forum.flow.com/t/how-to-create-an-account-after-running-the-localnet/2125/4 "2021-07-02T16:53:47Z")

</div>

hey, it is encoded version raw key is : 8ae3d0461cfed6d6f49bfc25fa899351c39d1bd21fdba8c87595b6c49bb4cc43 should be SHA2 though.
