Skip to content

Commit

Permalink
fixed last bits of build
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah committed Mar 1, 2025
1 parent 4946ebf commit 677fc0c
Show file tree
Hide file tree
Showing 13 changed files with 49 additions and 9 deletions.
6 changes: 4 additions & 2 deletions Contrib/Auth/Did/Did.asmdef
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"name": "Basis.Contrib.Auth.DecentralizedIds",
"rootNamespace": "",
"references": [],
"references": [
"GUID:b02b12758fb9942cda32715ba18e00b0"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
Expand All @@ -15,4 +17,4 @@
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": true
}
}
6 changes: 3 additions & 3 deletions Contrib/Auth/Did/DidKeyResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Debug = System.Diagnostics.Debug;
using Did = Basis.Contrib.Auth.DecentralizedIds.Newtypes.Did;
using DidUrlFragment = Basis.Contrib.Auth.DecentralizedIds.Newtypes.DidUrlFragment;
using Ed25519 = Org.BouncyCastle.Math.EC.Rfc8032.Ed25519;
using Ed25519 = Basis.Contrib.Crypto.Ed25519;
using StringSplitOptions = System.StringSplitOptions;

namespace Basis.Contrib.Auth.DecentralizedIds
Expand Down Expand Up @@ -69,7 +69,7 @@ out int prefixLen
);
}
var pubkeyBytes = multicodecPrefixed[prefixLen..];
if (pubkeyBytes.Length != Ed25519.PublicKeySize)
if (pubkeyBytes.Length != Ed25519.PubkeySize)
{
throw new DidKeyDecodeException(DidKeyDecodeError.WrongPubkeyLen);
}
Expand All @@ -86,7 +86,7 @@ out int prefixLen
/// See
private static JsonWebKey CreateEd25519Jwk(byte[] pubkeyBytes)
{
Debug.Assert(pubkeyBytes.Length == Ed25519.PublicKeySize);
Debug.Assert(pubkeyBytes.Length == Ed25519.PubkeySize);
var key = new JsonWebKey
{
Kty = "OKP",
Expand Down
2 changes: 2 additions & 0 deletions Contrib/Auth/Did/Result.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Contrib/Crypto/Crypto.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"BouncyCastle.Cryptography.dll",
"BouncyCastle.Cryptography.dll"
],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": true
}
}
7 changes: 7 additions & 0 deletions Contrib/Crypto/Crypto.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Contrib/Crypto/Crypto.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Contrib/Crypto/Crypto.csproj.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Contrib/Crypto/Ed25519.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

using Org.BouncyCastle.Crypto.Parameters;
using Ed25519Signer = Org.BouncyCastle.Crypto.Signers.Ed25519Signer;
using Rfc8032 = Org.BouncyCastle.Math.EC.Rfc8032;

namespace Basis.Contrib.Crypto
{
/// Ed25519 elliptic-curve signature algorithm.
public class Ed25519
public sealed class Ed25519
{
public static readonly int PubkeySize = Rfc8032.Ed25519.PublicKeySize;
public static readonly int PrivkeySize = Rfc8032.Ed25519.SecretKeySize;

public static bool VerifySignature(
Pubkey pubkey,
Signature sig,
Expand Down
2 changes: 2 additions & 0 deletions Contrib/Crypto/Ed25519.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Contrib/Crypto/IsExternalInit.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Contrib/Crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"publishConfig": { "registry": "https://npm.pkg.github.com/@BasisVR" },
"repository":"https://github.com/BasisVR/Basis",
"dependencies": {
"org.basisvr.bouncycastle": "2.5.0",
"org.basisvr.bouncycastle": "2.5.0"
}
}
7 changes: 7 additions & 0 deletions Contrib/Crypto/package.json.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Directory.build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<DisableTransitiveProjectReferences>true</DisableTransitiveProjectReferences>
</PropertyGroup>
</Project>

0 comments on commit 677fc0c

Please sign in to comment.