# What's the correct Motoko syntax for this this pseudocode of a sha256\_to\_derivation\_path() function?

**URL:** <https://forum.dfinity.org/t/whats-the-correct-motoko-syntax-for-this-this-pseudocode-of-a-sha256-to-derivation-path-function/17942>\
**Category:** Language Support\
**Created:** [January 12, 2023, 3:26pm UTC](https://forum.dfinity.org/t/whats-the-correct-motoko-syntax-for-this-this-pseudocode-of-a-sha256-to-derivation-path-function/17942 "2023-01-12T15:26:49Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![blabagastered](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/blabagastered/32/8592_2.png) [@blabagastered](https://forum.dfinity.org/u/blabagastered)\
**Post date:** [January 16, 2023, 7:25pm UTC](https://forum.dfinity.org/t/whats-the-correct-motoko-syntax-for-this-this-pseudocode-of-a-sha256-to-derivation-path-function/17942/5 "2023-01-16T19:25:45Z")

</div>

I solved the problem a different way but I’m getting another problem with mops.

I wonder if it has to do with moc. I have not explicitly installed moc. I don’t know if another command has installed it.

This is the full log: [icrc1/src/ICRC1/lib.mo:16.1-16.40: import error [M0010], package "StableTrieMap" not defined](https://forum.dfinity.org/t/icrc1-src-icrc1-lib-mo-16-1-16-40-import-error-m0010-package-stabletriemap-not-defined/18004)

---

_[View the full topic](https://forum.dfinity.org/t/whats-the-correct-motoko-syntax-for-this-this-pseudocode-of-a-sha256-to-derivation-path-function/17942)._
