(value: string)
| 456 | * @since 4.0.0 |
| 457 | */ |
| 458 | export const decodeIdentityString = (value: string): Identity["Service"] => { |
| 459 | const decoded = Schema.decodeUnknownSync(IdentityStringSchema)(value) |
| 460 | return { |
| 461 | publicKey: decoded.publicKey, |
| 462 | privateKey: Redacted.make(decoded.privateKey as Uint8Array<ArrayBuffer>) |
| 463 | } |
| 464 | } |
| 465 | |
| 466 | /** |
| 467 | * Encodes an event-log identity as a base64url string containing the public key |
nothing calls this directly
no test coverage detected