import { PublicKey, Transaction } from '@solana/web3.js'; import { IdentityDriver } from '../identityModule'; import { OperationUnauthorizedForGuestsError } from '../../errors'; export class GuestIdentityDriver implements IdentityDriver { public readonly publicKey: PublicKey; constructor(publicKey?: PublicKey) { this.publicKey = publicKey ?? PublicKey.default; } public async signMessage(): Promise { throw new OperationUnauthorizedForGuestsError('signMessage'); } public async signTransaction(): Promise { throw new OperationUnauthorizedForGuestsError('signTransaction'); } public async signAllTransactions(): Promise { throw new OperationUnauthorizedForGuestsError('signAllTransactions'); } }