-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1830f8
commit 71b2ecc
Showing
10 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package packers | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestPlainSupportedProfiles(t *testing.T) { | ||
p := PlainMessagePacker{} | ||
acceptProfiles := p.GetSupportedProfiles() | ||
require.Equal(t, []string{"iden3comm/v1;env=application/iden3comm-plain-json"}, acceptProfiles) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package protocol | ||
|
||
// AcceptProtocolVersion is a type of supported versions of the protocol used in the accept header | ||
type AcceptProtocolVersion string | ||
|
||
const ( | ||
// ProtocolVersionV1 is a V1 version of the protocol used in the accept header | ||
ProtocolVersionV1 AcceptProtocolVersion = "iden3comm/v1" | ||
) | ||
|
||
// AcceptAuthCircuits is a type of accepted authentication circuits | ||
type AcceptAuthCircuits string | ||
|
||
const ( | ||
// AcceptAuthCircuitsAuthV2 is authV2 accepted circuit | ||
AcceptAuthCircuitsAuthV2 AcceptAuthCircuits = "authV2" | ||
// AcceptAuthCircuitsAuthV3 is authV3 accepted circuit | ||
AcceptAuthCircuitsAuthV3 AcceptAuthCircuits = "authV3" | ||
) | ||
|
||
// AcceptJwzAlgorithms is a type of accepted proving algorithms | ||
type AcceptJwzAlgorithms string | ||
|
||
const ( | ||
// AcceptJwzAlgorithmsGroth16 is a groth16 accepted proving algorithm | ||
AcceptJwzAlgorithmsGroth16 AcceptJwzAlgorithms = "groth16" | ||
) | ||
|
||
// AcceptJwsAlgorithms is a type of accepted JWS algorithms | ||
type AcceptJwsAlgorithms string | ||
|
||
const ( | ||
// AcceptJwsAlgorithmsES256K is a ES256K accepted JWS algorithm | ||
AcceptJwsAlgorithmsES256K AcceptJwsAlgorithms = "ES256K" | ||
|
||
// AcceptJwsAlgorithmsES256KR is a ES256K-R accepted JWS algorithm | ||
AcceptJwsAlgorithmsES256KR AcceptJwsAlgorithms = "ES256K-R" | ||
) |