()
| 161 | } |
| 162 | |
| 163 | async function getContentSigningKey(): Promise<string> { |
| 164 | const pickledOlmAccount = await fetchPickledOlmAccount('content'); |
| 165 | const getAccountEd25519Key: (account: OlmAccount) => string = ( |
| 166 | account: OlmAccount, |
| 167 | ) => JSON.parse(account.identity_keys()).ed25519; |
| 168 | |
| 169 | const { result } = await unpickleAccountAndUseCallback( |
| 170 | pickledOlmAccount, |
| 171 | getAccountEd25519Key, |
| 172 | ); |
| 173 | return result; |
| 174 | } |
| 175 | |
| 176 | async function signUsingOlmAccount(message: string): Promise<string> { |
| 177 | const pickledAccount = await fetchPickledOlmAccount('content'); |
no test coverage detected