
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@gitcoin/gs-passport-verifier
Advanced tools
Verify the contents of a Gitcoin Passport
Add to your project...
yarn add @gitcoinco/passport-sdk-verifier
--
Or download this .git repository and install deps manually...
yarn install
Build...
yarn run webpack
Firstly, we need to import the library/bundle and construct a PassportVerifier
instance
// import as a module
import PassportVerifier from "@gitcoinco/passport-sdk-verifier";
// or import the bundle
<script src="./dist/verifier.bundle.js" type="script/javascript"/>
...
// create a new instance pointing at the community clay node on mainnet along with the criteria we wish to score against
const verifier = new PassportVerifier();
// Verify all Stamps held within a Passport
const passport = await verifier.verifyPassport("0x0...");
Browser Usage
If you are using this package in a browser, you may need to asynchronously load @gitcoinco/passport-sdk-verifier
'`
before using.
// NextJS Example
const [verifier, setVerifier] = useState();
useEffect(() => {
const initVerifier = async () => {
// Dynamically load @gitcoinco/passport-sdk-verifier
const PassportVerifier = (await import("@gitcoinco/passport-sdk-verifier")).PassportVerifier;
setVerifier(new PassportVerifier("https://ceramic.staging.dpopp.gitcoin.co"));
};
initVerifier().then(() => {
console.log("Verifier inited :)");
});
}, []);
The PassportVerifier
instance exposes read-only methods to verify the content of a Gitcoin Passport:
verifyPassport
- pass in an ethereum address and get back a Passport where each stamps contains a verified: boolean
fieldPassportVerifier.verifyPassport(address: string, passport?: Passport, additionalStampCheck?: (stamp: Stamp) => boolean): Promise<Passport>
verifyStamp
- pass in a Stamp and get back a Stamp with the verified: boolean
field completedPassportVerifier.verifyStamp(address: string, stamp: Stamp, additionalStampCheck?: (stamp: Stamp) => boolean): Promise<Stamp>
verifyCredential
- pass in a VerifiableCredentail and get back a booleanPassportVerifier.verifyCredential(credential: VerifiableCredential): Promise<boolean>
FAQs
Verify the contents of a Gitcoin Passport
We found that @gitcoin/gs-passport-verifier demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.