Skip to content

Instantly share code, notes, and snippets.

View StefH's full-sized avatar

Stef Heyenrath StefH

View GitHub Profile
@StefH
StefH / AddressValidator.cs
Last active June 18, 2018 19:43
Nethereum AddressValidator code
using System.Text.RegularExpressions;
using Nethereum.Util;
namespace SupplyChain.BlockChain.Validation
{
/// <inheritdoc cref="IAddressValidator"/>
public class AddressValidator : IAddressValidator
{
private static readonly Regex AddressRegex = new Regex("^0[xX]([A-Fa-f0-9]{40})$");
private static readonly AddressUtil AddressUtil = new AddressUtil();
0x10459EA30C46269CD8c0f5D3Be8Ea29e1E4e3f8e