ipfs storage for images and other nontext items. for use with etica - runs on etica network and currencys https://collect.etica-stats.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 lines
538 B

import { getAddress } from "../address/index.js";
import { Signature } from "../crypto/index.js";
import { getBigInt } from "../utils/index.js";
import type { Authorization, AuthorizationLike } from "./index.js";
export function authorizationify(auth: AuthorizationLike): Authorization {
return {
address: getAddress(auth.address),
nonce: getBigInt((auth.nonce != null) ? auth.nonce: 0),
chainId: getBigInt((auth.chainId != null)? auth.chainId: 0),
signature: Signature.from(auth.signature)
};
}