Skip to content

Commit

Permalink
set a default porter uri
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Sep 4, 2023
1 parent 78c1c54 commit 0dc72d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/taco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { ethers } from 'ethers';
import { ThresholdDecrypter } from './characters/cbd-recipient';
import { Condition, ConditionExpression } from './conditions';
import { DkgClient } from './dkg';
import { getPorterUri } from './porter';
import { toBytes } from './utils';

export interface TacoMessageKit {
Expand Down Expand Up @@ -57,7 +58,7 @@ export const encryptLight = async (
export const decrypt = async (
web3Provider: ethers.providers.Web3Provider,
messageKit: TacoMessageKit,
porterUri: string
porterUri = getPorterUri('tapir')
): Promise<Uint8Array> => {
const decrypter = ThresholdDecrypter.create(
porterUri,
Expand Down

0 comments on commit 0dc72d2

Please sign in to comment.