Skip to content

Commit 352ae8c

Browse files
set a default porter uri
1 parent 9970cb5 commit 352ae8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/taco.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { ThresholdDecrypter } from './characters/cbd-recipient';
99
import { Condition, ConditionExpression } from './conditions';
1010
import { DkgClient } from './dkg';
1111
import { toBytes } from './utils';
12+
import { getPorterUri } from './porter';
1213

1314
export interface TacoMessageKit {
1415
ciphertext: Ciphertext;
@@ -57,7 +58,7 @@ export const encryptLight = async (
5758
export const decrypt = async (
5859
web3Provider: ethers.providers.Web3Provider,
5960
messageKit: TacoMessageKit,
60-
porterUri: string
61+
porterUri = getPorterUri('tapir')
6162
): Promise<Uint8Array> => {
6263
const decrypter = ThresholdDecrypter.create(
6364
porterUri,

0 commit comments

Comments
 (0)