Brant Brown

Results 2 comments of Brant Brown

Maybe Principal implement ``` public func fromText(t : Text) : ?Principal ``` is a good choice. Developers can judge whether the text is valid based on the return value. I...

I have implemented it [here](https://github.com/Deland-Labs/dfinity-fungible-token-standard/blob/06ad30ea8a8c27b6eaada9c214f39e8f50eb8d4b/canisters/dft_motoko/utils/PrincipalExt.mo#L17) Maybe it can meet your needs > Do we have a function exposed to easily check if a string is a valid principal id in...