Skip to content
Snippets Groups Projects
Commit 676b2fcd authored by Josh Brooks's avatar Josh Brooks
Browse files

Propage crypto changes

parent 916e71e8
Branches
Tags
2 merge requests!645Xx 4601/haven invites refactor,!617Project/haven beta
......@@ -450,7 +450,7 @@ func (m *manager) SendInvite(channelID *id.ID, msg string, inviteTo *id.ID,
// Form link for invitation
rng := m.rng.GetStream()
defer rng.Close()
inviteUrl, password, err := ch.broadcast.Get().InviteURL(host, maxUses, rng)
inviteUrl, password, err := ch.broadcast.Get().ShareURL(host, maxUses, rng)
if err != nil {
return message.ID{}, rounds.Round{}, ephemeral.Id{},
errors.WithMessage(err, "could not form URL")
......
......@@ -576,7 +576,7 @@ func Test_manager_SendInvite(t *testing.T) {
require.NoError(t, err)
// Ensure invite URL matches expected
expectedLink, expectedPassword, err := ch.InviteURL(host, maxUses, rng)
expectedLink, expectedPassword, err := ch.ShareURL(host, maxUses, rng)
require.NoError(t, err)
require.Equal(t, expectedLink, txt.InviteLink)
require.Equal(t, expectedPassword, txt.Password)
......
......@@ -222,7 +222,7 @@ func (dc *dmClient) SendInvite(partnerPubKey *ed25519.PublicKey,
rng := dc.rng.GetStream()
defer rng.Close()
inviteUrl, passsord, err := inviteTo.InviteURL(host, maxUses, rng)
inviteUrl, passsord, err := inviteTo.ShareURL(host, maxUses, rng)
if err != nil {
return cryptoMessage.ID{}, rounds.Round{}, ephemeral.Id{},
errors.WithMessage(err, "could not form URL")
......
......@@ -15,7 +15,7 @@ require (
github.com/stretchr/testify v1.8.2
gitlab.com/elixxir/bloomfilter v0.0.0-20230322223210-fa84f6842de8
gitlab.com/elixxir/comms v0.0.4-0.20230519211512-4a998f4b0938
gitlab.com/elixxir/crypto v0.0.7-0.20230531215706-e2257da3f4ff
gitlab.com/elixxir/crypto v0.0.7-0.20230601185515-3813919cfa93
gitlab.com/elixxir/ekv v0.3.1-0.20230525213559-f9da13f4fce1
gitlab.com/elixxir/primitives v0.0.3-0.20230214180039-9a25e2d3969c
gitlab.com/xx_network/comms v0.0.4-0.20230214180029-5387fb85736d
......
......@@ -509,6 +509,8 @@ gitlab.com/elixxir/crypto v0.0.7-0.20230526183834-62f8f49617bc h1:Rl8q37axi4XVuu
gitlab.com/elixxir/crypto v0.0.7-0.20230526183834-62f8f49617bc/go.mod h1:IYInxKr5Q7EH3oNhg1QX1/sTTRNi7L0JkcyfdRegoio=
gitlab.com/elixxir/crypto v0.0.7-0.20230531215706-e2257da3f4ff h1:ysclEYzIsprqBiK+m+SBbzLz0p7jY0IzwCbyGr4mOEs=
gitlab.com/elixxir/crypto v0.0.7-0.20230531215706-e2257da3f4ff/go.mod h1:IYInxKr5Q7EH3oNhg1QX1/sTTRNi7L0JkcyfdRegoio=
gitlab.com/elixxir/crypto v0.0.7-0.20230601185515-3813919cfa93 h1:9uwoqqEk8virGua/fjk8M7CHQFT2uY7pBU8TjMSPwiA=
gitlab.com/elixxir/crypto v0.0.7-0.20230601185515-3813919cfa93/go.mod h1:IYInxKr5Q7EH3oNhg1QX1/sTTRNi7L0JkcyfdRegoio=
gitlab.com/elixxir/ekv v0.3.1-0.20230525194317-09a02b3624b4 h1:CAnL4hXfDBcBimI/GxFoBWNeS8DAXrc6YXxUL7C0nEM=
gitlab.com/elixxir/ekv v0.3.1-0.20230525194317-09a02b3624b4/go.mod h1:UStTZ9d1UVn9Ahyb49lrbPKyr/Wb8xFWqMXbDgIqQhE=
gitlab.com/elixxir/ekv v0.3.1-0.20230525213559-f9da13f4fce1 h1:8XBo6QQBXXGCTrgXHFuqPL21mROLKLAoO3X9xR5TwA0=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment