micro-sol-signer
Version:
Create, sign & decode Solana transactions with minimum deps
20 lines • 606 B
TypeScript
import * as P from 'micro-packed';
export declare const Offchain: {
Message: P.CoderType<{
version: 0;
msg: string;
}>;
MessageRaw: P.CoderType<P.StructInput<{
magic: undefined;
version: {
TAG: 0;
data: P.StructInput<{
format: /*elided*/ any;
msg: /*elided*/ any;
}>;
};
}>>;
sign(privateKey: Uint8Array, msg: string, version?: 0): string;
verify(sigature: string, publicKey: Uint8Array | string, msg: string, version?: 0): boolean;
};
//# sourceMappingURL=offchain.d.ts.map