Observed since 21 Oct, 10:20 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0xsequence/ethauth
ETHAuth -- self-signed authorization proofs
____ ____ ____ ____ ____ ____ ____
||e |||t |||h |||a |||u |||t |||h ||
||__|||__|||__|||__|||__|||__|||__||
|/__\|/__\|/__\|/__\|/__\|/__\|/__\|
pnpm add @0xsequence/ethauth (or yarn add ... or npm install ...)
proof = eth.<address>.<claims>.<signature>.<extra>
The account address in hex encoding, ie. '0x9e63b5BF4b31A7F8d5D8b4f54CD361344Eb744C5'.
Note, you should not take the account address in the ethauth proof at face value -- you must parse the Proof and validate it with the library methods provided. The address is included when used to verify smart wallet based accounts (aka contract-based accounts).
a base64 encoded JSON object of
interface Claims {
app: string
exp: number
iat?: number
n?: number
typ?: string
ogn?: string
}
Fields:
app (required) - App identifier requesting the issuance of the ethauth proofexp (required) - Expired at unix timestamp of when the ethauth proof is valid untiliat (optonal) - Issued at unix timestamp of when the ethauth proof has been signed/issuedn (optional) - Nonce value which can be used as a challenge number for added securitytyp (optional) - Type of authorization for this ethauth proofogn (optional) - Domain origin requesting the issuance of the ethauth proofSignature value of the claims message payload. The signature is computed by the EIP712 eth_signTypedData call of the claims object. The signature may be recoverable with ECRecover to determine the EOA address, or you may have a different encoding such as one used with EIP-1271, to validate the contract-based account signature.
ethauth-proof = eth.0x89d9f8f31817badb5d718cd6fb483b71dbd2dfed.eyJhcHAiOiJFV1RUZXN0IiwiaWF0IjoxNTk1NTMwODQwLCJleHAiOjE1OTU1MzExNDB9.0x233ab9164a677a41acc8d52c9e1d1a621acebf9bc8d956c8474618b589acebe10cc350deb4b02bf6951cec8bd23507170f204ca326a5a264b8f6f67fa2619c251c
decodes & verifies to:
0x89D9F8f31817BAdb5D718CD6fb483b71DbD2dfeD{"app":"EWTTest","iat":1595530840,"exp":1595531140}0x233ab9164a677a41acc8d52c9e1d1a621acebf9bc8d956c8474618b589acebe10cc350deb4b02bf6951cec8bd23507170f204ca326a5a264b8f6f67fa2619c251cethauth-proof = eth.0x9e63b5bf4b31a7f8d5d8b4f54cd361344eb744c5.eyJpYXQiOjE1OTQ3NDM4NDgsImV4cCI6MTYyNjI3OTg0OCwibiI6MTMzN30.0x000100012dd090aec5e4a9678f7968533c10fc42b07b9a23fa3b719f79a861adcfc7e1d958e3521bb061c34072f5435681390ccc9be19bf9da32320bd2356d0b4b4d316b1c02
decodes & verifies to:
0x9e63b5bf4b31a7f8d5d8b4f54cd361344eb744c5{"iat":1594743848,"exp":1626279848,"n":1337}0x000100012dd090aec5e4a9678f7968533c10fc42b07b9a23fa3b719f79a861adcfc7e1d958e3521bb061c34072f5435681390ccc9be19bf9da32320bd2356d0b4b4d316b1c02MIT
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
js-base64Environment{
"local_name": "js-base64",
"alias": false,
"peer_metadata": null
} | ^3.7.2 | runtime |
oxEnvironment{
"local_name": "ox",
"alias": false,
"peer_metadata": null
} | ^0.7.2 | development |
prettierEnvironment{
"local_name": "prettier",
"alias": false,
"peer_metadata": null
} | ^3.0.2 | development |
rimrafEnvironment{
"local_name": "rimraf",
"alias": false,
"peer_metadata": null
} | ^3.0.2 | development |
rollupEnvironment{
"local_name": "rollup",
"alias": false,
"peer_metadata": null
} | ^3.3.0 | development |
rollup-plugin-typescript2Environment{
"local_name": "rollup-plugin-typescript2",
"alias": false,
"peer_metadata": null
} | ^0.34.1 | development |
tslibEnvironment{
"local_name": "tslib",
"alias": false,
"peer_metadata": null
} | ^2.4.1 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ~5.9.2 | development |
vitestEnvironment{
"local_name": "vitest",
"alias": false,
"peer_metadata": null
} | ^3.2.4 | development |
oxEnvironment{
"local_name": "ox",
"alias": false,
"peer_metadata": null
} | ^0.7.2 | peer |
Source distribution
{
"integrity": "sha512-hBNjo2lnmT0fKwlyNYn2ctmQPVcEm6A+LyLoOD0FtAUbV7Kceea+vu7DfoNlI/yOEDEnt6Jdc9hi9R8G1V6Xwg==",
"shasum": "31eb6d24d77d2c6100b6828e9c5bb7a2c8b07e05",
"tarball": "https://registry.npmjs.org/@0xsequence/ethauth/-/ethauth-2.0.0.tgz",
"fileCount": 10,
"unpackedSize": 51032,
"signatures": [
{
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
"sig": "MEQCIEqFoQo70nCscef+gyyPzdSl9dMY2ZztMhbduGCzv2RFAiBblNTsZKIatXFmiPJaw37ceZgzPgUc4F5Pv2xZR3cWxg=="
}
]
}Observed since 21 Oct, 10:20 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:66d3ba10f37b44d616a4323b65d4aaba418712d2ffbefd6676656b949ea3a52f