(bytes: Uint8Array)
| 20 | const encodeEnvironmentKeyPair = Schema.encodeEffect(EnvironmentKeyPairJson); |
| 21 | |
| 22 | function bytesToString(bytes: Uint8Array): string { |
| 23 | return new TextDecoder().decode(bytes); |
| 24 | } |
| 25 | |
| 26 | function stringToBytes(value: string): Uint8Array { |
| 27 | return new TextEncoder().encode(value); |