Skip to Content
ExamplesExamples

SDK examples

Choose the core SDK for your language. Add an Enforce adapter only when your application uses its documented framework boundary.

Each guide uses the 1.0.0 package contract and links to the matching package README. Tools and SDKs shows the packages available in your environment and provides their installation commands.

Choose a language

Compare every core SDK and Enforce adapter in the package catalog. The quickstart shows how to verify one allowed action and one denied action.

Download application examples

Application examples have a separate source release from the SDK packages. An example archive does not replace an SDK package or change its version.

The five-language archive is 827,579 bytes and contains 231 entries: 225 source files, five license copies, and one manifest. The separate Go archive is 224,128 bytes and contains 46 entries: 44 source files, one license copy, and one manifest.

Install the approved SDK packages through Tools and SDKs. The source archives download from the same public VeriProof package feed, so you need no credential.

Choose one source release. For .NET, Java, Python, Rust, and TypeScript, set:

$package = 'veriproof-application-examples' $version = '1.0.2-2c7053c4d8ed6b513331b44be97f9d823e72fe97' $expected = '79ed705e9fdc03251781adcc8158b140790c2073a7794074a694791570f5627a' $archive = 'veriproof-application-examples-1.0.2.zip'

For Go, set:

$package = 'veriproof-go-application-examples' $version = '1.0.2-1e56e3085f75f49d60bd9ccd59751db0ac6bcf4c' $expected = 'cbb18479369b028a2215246406caf4076716224c58322b0ab95f29b16e40f173' $archive = 'veriproof-go-application-examples-1.0.2.zip'

Then download and check the selected source release:

if ($version -cnotmatch '^1\.0\.2-[0-9a-f]{40}$' -or $expected -cnotmatch '^[0-9a-f]{64}$') { throw 'Use the version and checksum from the approved application-example release.' } if ((Test-Path -LiteralPath $archive) -or (Test-Path -LiteralPath 'application-examples')) { throw 'Choose an empty download directory.' } $uri = "https://gitlab.com/api/v4/projects/84586136/packages/generic/$package/$version/$archive" Invoke-WebRequest -Uri $uri -MaximumRedirection 0 -OutFile $archive if ((Get-FileHash -LiteralPath $archive -Algorithm SHA256).Hash.ToLowerInvariant() -cne $expected) { throw 'The application-example archive does not match the approved checksum.' } Expand-Archive -LiteralPath $archive -DestinationPath 'application-examples'

Each archive contains the selected languages’ application examples, shared support, and license text. Both exclude SDK implementation source. Read each language’s README.md before running an example. The generated application-source-manifest.json records the application-source commit, SDK source commit, and each file’s checksum.

Last updated on